Example GraphQL API created as an intro to GraphQL and Apollo. Presented during the meetup React & GraphQL Sundsvall.
You can find an example app using this API in the repo esatto/graphql-movie-app.
DEMO - Coming soon
- Apollo Server - GraphQL server implementation in JavaScript
- TypeScript - Static types
- graphqlgen - Generate types and resolvers from GraphQL
We're using yarn
in these examples, but npm
should work as well.
- Run
yarn
to install packages - Run
yarn start
to start compilation and server - Run
yarn graphqlgen
to generate TypeScript definitions for resolvers using graphqlgen.
For syntax highlighting in .graphql
-files, use the Apollo VSCode plugin.
This example project is MIT licensed.