Code basis on How to GraphQL graphql-java Tutorial:
- Introduction
- Getting Started
- Queries
- Mutations
- Connectors
- Authentication (based on ID as they said)
- More Mutations
- Error Handling
- Subscriptions (not supported in graphql-java)
- Filtering
- Pagination
- Alternative approaches to schema development (GraphQL SPQR)
mvn jetty:run
- Java packages
- Interfaces for repositories
- In memory repositories (in tutorial the last one in memory repository is in Mutations part)
- Files for JS GraphQL IntelliJ plugin (version 2,
currently beta):
.graphqlconfig
andscratch.graphql
- Implemented all with GraphQL SPQR (not only mentioned in "Alternative approaches to schema development" tutorial's part)
- File
schema.graphqls
preserved only due to JS GraphQL plugin's schema validation. Try to use Insomnia client.
Application running with in memory repositories by default.
If you want to persist data, you have to run MongoDB, for example in Docker:
docker run --name some-mongo -p 27017:27017 -d mongo