Skip to content

kijanowski/graphql-springboot-dataloader-scope

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot based GraphQL project showing different DataLoader scopes

This application is part of this blog post about the possible scopes of the GraphQL's DataLoader pattern.

Build:

$ ./gradlew clean build

Run to test the global scope:

$ java -jar build/libs/graphql-springboot-scope-0.0.1-SNAPSHOT.jar --spring.profiles.active=global

Run to test the request scope:

$ java -jar build/libs/graphql-springboot-scope-0.0.1-SNAPSHOT.jar --spring.profiles.active=request

GraphiQL, an in-browser IDE for exploring GraphQL, is embedded through graphiql-spring-boot-starter and available at http://localhost:8081/graphiql.

Sample query to be run:

{
  animals {
    name
    color
    countries {
      name
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages