Package Exports
- @romainfieve/hasura-from-domains
- @romainfieve/hasura-from-domains/dist/index.js
- @romainfieve/hasura-from-domains/dist/index.mjs
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@romainfieve/hasura-from-domains) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
hasura-from-domains
A NodeJS tool to import domain migrations and metadata to hasura.
Table of Content
Installation
yarn add @romainfieve/hasura-from-domains
or
npm install @romainfieve/hasura-from-domains
Usage
// ...
// |__ hasura
// | |__ metadata
// | |__ migrations
// | |__ default
// |
// |__ src
// |__ domains
// |__ users
// |__ user.permissions.yml
// |__ user.constraints.sql
// |__ user.tables.sql
// |__ user.triggers.sql
// ...
generate({
metadataPath: './hasura/metadata',
migrationsPath: './hasura/migrations/default',
sourceDirectory: './src/domains',
})
// ...
// |__ hasura
// | |__ metadata
// | |__ migrations
// | |__ default
// | |__ 0000000000_tables_user
// | | |__ up.sql
// | |__ 0000000001_constraints_user
// | | |__ up.sql
// | |__ 0000000002_triggers_user
// | |__ up.sql
// |
// |__ src
// |__ domains
// |__ users
// |__ user.permissions.yml
// |__ user.constraints.sql
// |__ user.tables.sql
// |__ user.triggers.sql
// ...