GraphQL APIs offer greater flexibility than traditional REST APIs and are particularly suited for mobile app development. Exposing a GraphQL API is also becoming an expected part of the API offering of many platforms. GraphQL APIs work differently to traditional REST APIs and also present some unique operational challenges.
In this session, Ben Morgan will get you ready to build and run a GraphQL API. The session is focussed on the design and operational side. We will cover the basics of GraphQL; design patterns for GraphQL; how to operate a GraphQL API; and take a look at available tooling.
16. type Person {
name: String
dateOfBirth: String
hairColour: String
address: Address
}
type Address {
number: String
street: String
}
type Query {
person(id: ID): Person
}
17. type Person {
name: String
dateOfBirth: String
hairColour: String
address: Address
}
type Address {
number: String
street: String
}
type Query {
person(id: ID): Person
}
18. type Person {
name: String
dateOfBirth: String
hairColour: String
address: Address
}
type Address {
number: String
street: String
}
type Query {
person(id: ID): Person
}
19. type Person {
name: String
dateOfBirth: String
hairColour: String
address: Address
}
type Address {
number: String
street: String
}
type Query {
person(id: ID): Person
}
20. Query parsing
Break the query up into fields
Data fetcher / resolvers
Fetch portions of the graph
Merge results
Merge the results of the fetch operations
21. Query parsing
Break the query up into entities
Data fetcher / resolvers
Fetch portions of the graph
Merge results
Merge the results of the fetch operations
22. Query parsing
Break the query up into entities
Data fetcher / resolvers
Fetch portions of the graph
Merge results
Merge the results of the fetch operations
61. Projects and tools
GraphQL Foundation
Foundation that looks after the
GraphQL standard
Relay
Framework for GraphQL client
Apollo GraphQL
Platform and tooling for building
graphql APIs
GraphiQL
In browser query ide
graphql-java
Java Graphql framework
62.
63. BENJAMIN MORGAN | SENIOR DEVELOPER | ATLASSIAN | @BENEDWINMORGAN
Thank you!