Skip to content

Instantly share code, notes, and snippets.

@schroedermatt
Last active June 28, 2017 17:26
Show Gist options
  • Save schroedermatt/69ea38954c659ac3862f202f6ae849c0 to your computer and use it in GitHub Desktop.
Save schroedermatt/69ea38954c659ac3862f202f6ae849c0 to your computer and use it in GitHub Desktop.
General project structure for GraphQL in a Spring Boot app
graphql
|---- controller - exposes /v1/graphql POST endpoint
|---- executor - picks apart the request and executes the query against the schema
|---- schema - builds up the schema and provides it to the executor
|---- datafetcher - wraps calls to the database, external APIs, etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment