Coder, Lecturer (PJATK), Java Trainer (infoShare Academy) • 7+ years of experience in Java Development • using GraphQL for a year now • E-mail: [email protected] • Twitter: krzychpawlowski
String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment
Long id String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment
Long id String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment { id: 1, title: “GraphQL”, authorId: 1, commentsIds: [1, 2] }
<<class>> Author Long id String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment
<<class>> Author Long id String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment { id: 1, author: “anonymous”, comment: “super!” }
name blogEntries { title comments { comment } } } <<class>> Author Long id String name String email String bio List<BlogEntry> blogEntries <<class>> BlogEntry Long id String title List<Comment> comments <<class>> Comment Long id String author String comment
and a runtime for fulfilling those queries with your existing data.” — http://graphql.org Declarative Ask for what you need, get exactly that Compositional Get many resources in a single request
and a runtime for fulfilling those queries with your existing data.” — http://graphql.org Declarative Ask for what you need, get exactly that Compositional Get many resources in a single request Strongly Typed Describe what’s possible with a type system
controller under /v1/graphql <dependency> <groupId>com.merapar</groupId> <artifactId>graphql-spring-boot-starter</artifactId> <version>1.0.2</version> </dependency> ‣adding new queries and mutation is a matter of implementing GraphQlFields interface