Please enable JavaScript.
Coggle requires JavaScript to display documents.
GraphQL - Coggle Diagram
GraphQL
queries
structure similar to JSON
object type or scalar type
schema
multiple schemas with relationships
mutations
subscriptions
you need to define them all with schemas
query language + runtime for APIs
for backend and frontend
it's not database technology
it's database agnostic
graphQL server
integrates third party or legacy systems
hybrid
server with a database
graphQL is the API interface
resolver function
responsible for fetching data on a single field
declarative data fetching
single endpoint
precise data
no underfetching or overfetching
less steps than REST API
no parsing
but, problem with caching them
client
no more https requests
developed and open-sourced by Facebook
https://www.howtographql.com/