Skip to content

mkczyk/hackernews-graphql-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hackernews-graphql-java

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)

Running

mvn jetty:run

Changes compared to the tutorial

  • 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 and scratch.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.

Working with Mongo

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

About

How to GraphQL graphql-java Tutorial

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published