This is a minimal example of using the Warthog GraphQL API library.
To get things set up,
- Start PostgreSQL. You can BYO or we've provided a dockerized PostgreSQL, which can be run with
yarn postgres:start
- Install dependencies with
yarn bootstrap
- Start the PostgreSQL instance you created during setup
- Run
yarn start
to run the server
When you run yarn start
, it will open graphql-playground. When in the playground, you can issue queries and mutations against the API. Try some of the examples in examples.gql.
Run yarn test
to run tests