Skip to content

Latest commit

 

History

History

sifrr-api

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

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