Skip to main content

Examples

Working minimal code examples are often the best way to see how a library should be configured. It gives a working starting point that one can borrow from when setting up their own project. To that end, Grats' repository contains a number of examples that demonstrate how to use Grats with various frameworks and libraries. Each example is covered by our integration tests to ensure it's in working order.

Grats with other libraries

  • Apollo Server - A very minimal example of using Grats with Apollo Server.
  • GraphQL HTTP - Simple demo project integrating Grats, Express and graphql-http.
  • Yoga - Simple demo project integrating Grats and Yoga with Node's built-in HTTP server. This example also includes an working example of GraphQL subscriptions.
  • NextJS - Simple demo project integrating Grats and Next.js and Yoga.

Capabilities of Grats

Standalone examples

Examples of Grats outside of the Grats repository:

note

If you would like a working example of Grats used with a framework or library that isn't covered here, please reach out on Discord or Twitter.