@sifrr/api

0.0.9 • Public • Published

sifrr-api · npm version Doscify

[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
});

Dependencies (3)

Dev Dependencies (12)

Package Sidebar

Install

npm i @sifrr/api

Weekly Downloads

1

Version

0.0.9

License

MIT

Unpacked Size

21.4 kB

Total Files

12

Last publish

Collaborators

  • aadityataparia