Skip to content

Example

Michael Compton edited this page Feb 23, 2019 · 3 revisions

This is a walkthrough of the example at https://github.com/MichaelJCompton/GraphSchemaTools/tree/master/GraphSchema.Examples/AuthorPosts.

It's a simple GraphQL schema, modeling an app that allows users to have an account, add posts and like other posts. You can check out the schema file here

Because the AuthorPosts.graphql GraphQL schema follows the Schema Conventions, GraphSchema can run a GraphQL API for the schema on top of a Dgraph database.

  1. Get the GraphSchema GraphQL API up and running - Running GraphSchema
  2. Run GraphQL queries and mutations with the API - Example Mutations and Queries