CLI offers help prompt.
graphback in your shell for more information
The command will guide you through a series of questions - choosing a template, bootstrapping model - and setup your project for you.
You can also provide the template name as argument which will skip the template selection part.
Generate command will generate schema and resolvers for your GraphQL server based on your data model.
Create databases resources based on your data model. Currently supports PostgreSQL and sqlite3.
Note - Running
graphback dbdrops your database and recreates it with tables and relationships.
Updates your database schema based on your data model. Currently supported change types are:
- TYPE_ADDED - Adding a new GraphQL type to your model will create an associated database table.
- FIELD_ADDED - Adding a field to an existing model will create a new column in your database table.
Create configuration in existing project to support Graphback resolver and schema generation.
Note When creating configuration please review if locations created for
filesintegration match your project folder structure
Generate GraphQL schema and resolvers based on OpenAPI spec