5. What is GraphQL?
New API standard developed by Facebook
Specficiation for type system & query language
Core primitives: Query, Mutation & Subscription
6. Why use GraphQL?
Strongly typed schema for your API
Query exactly the data you need
Rich ecosystem, smooth workflows and
great community
7. query {
user(id: “user123”) {
name
posts {
title
}
}
}
HTTP POST
{
"data" :{
"user": {
"name": "Sarah",
"posts": [
{ "title": "Join us for GraphQL Europe" },
{ "title": "GraphQL is the future of APIs" },
]
}
}
}
15. Compose multiple GraphQL APIs into a single one
Merge schemas vs Pick & Choose
Uses schema delegation under the hood
Schema Stitching
16. Turns your database into a GraphQL API
Glue between server and database
Goal: Make it easy to build complex apps
Headless CMS
API is consumed directly by client apps
Goal: Make content management easy