Skip to content

GraphQL type generation

Mats Tyldum edited this page Feb 16, 2021 · 4 revisions

Download the schema file

gq https://hover-server.herokuapp.com/v1/graphql --header "X-Hasura-Admin-Secret: ADMIN_SECRET" --introspect > schema.graphql

Then generate

npm run generate

Testing and Deployment

Check that your code runs

npm run serve

The command wil serve all functions locally, and each can be tested using tool such as Postman.

When the functions are ready for deployment

npm run deploy

Clone this wiki locally