GraphQL Schema Stitching

  • The framework does GraphQL schema stitching with the help of @graphql-tools/merge npm package.
  • For each table, we are keeping a schema file that generates under server/graphql/primary/schema folder.
  • Each file name would in a format like <table_name>.schema.js and contains all the query, mutations and types ( for table, aggregated result and groupby result ). These files will automatically generates while code generation happens.
  • Schema stitching happens while the resolver component is initializing where it will combine all the schema files and generates the schema.

For more info about the implementation please refer the resolvers.index.js file which is located in server/resolvers/ folder.

An example for schema file which is generated for city table in sakila database.

Subscribe to Our Newsletter

Let us stretch your imagination

Download App