Folder Structure - Wertik

Folder structure - GraphQL

A guide how Wertik initializes GraphQL server.

This is the file(graphql/index.ts) where GraphQL is iniitalized. To set custom schema we have used this file(graphql/generalSchema.ts). Now there are two things:

  • CRUD Generator
  • Load All Graphql

Crud Generator

To setup Crud generator we have used this file(graphql/crudGenerator.ts) to setup generators, which also generates subscriptions.

Load All GraphQL

This file(graphql/loadAllModules.ts) does all the magic for GraphQL, it loads all custom modules, subscriptions, queries and mutations to GraphQL server.

More details will be added soon.

If you have any suggestions, Please open an issue here and let us know.