Skip to content

bajal/spring-boot-mongo-graphql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spring-boot-mongo-graphql

GraphQL starter with spring-boot and spring-data-mongo

Run the app by mvn spring-boot:run or simply run the Application.java from your IDE. Bring up http://localhost:9000/graphiql to use the graphiql tool.

Request:

query {
    recentPosts(count: 10, offset: 0) {
       permalink
    	 author
    	 id
    }
}

Response:

{
  "data": {
    "recentPosts": [
      {
        "permalink": "cxzdzjkztkqraoqlgcru",
        "author": "machine",
        "id": "5143ddf3bcf1bf4ab37d9c6d"
      },
      ...
}

About

GraphQL starter with mongo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages