@sifrr/api
v0.0.9
Published
Create normal/GraphQL APIs using sequelize/graphql-sequelize/express.
Downloads
3
Maintainers
Readme
sifrr-api ·
[NOTE]: old version is deprecated
Please use typegraphql
and typeorm
with sifrr-api
to build graphql apis using typescript.
API
saveSchema
Keeps track of graphql schema with versioning to keep track of when the api was changed. Much like db migrations. Ideally you will run this command whenever you change the graphql schema, and save the schemas in your version control system.
saveSchema(executableSchema, {
schemaDir: path.resolve('./schema'), // directory path where schema files will be saved
printOptions?: // options to be given to `printSchema` command of graphql
});