Graphback helps you to kickstart your experience with any existing GraphQL implementation by generating backend and client side CRUD layer using your GraphQL data model. The CLI exposes a single
You can add
Graphback CLI on your existing GraphQL project using either of the following commands.
Or with yarn:
You project must contain the configuration file that follows the format described by the graphql-config.
.graphqlrc.yml configuration file for example, your configuration should have the following minimum required entry:
If you used graphql-cli to initialize
the project, this file will be automatic setup for you. Otherwise, you can still use the
init command from the CLI to initialize
this configuration setup.
To use Graphback generate command. In your
package.json file, edit the
scripts parts and add the following line:
And finally, use npm or yarn to run it:
generate command will execute generation process that will generate GraphQL server based on your data model.
Graphback CLI is now part of the graphql-cli command line tool. Please consider installing it for wider set of features