GraphQL and DQL
GraphQL provides a nested object query language that looks nominally like a JSON template, with the resulting format being an actual JSON document. Queries are built up from types and fields, which are declared in a schema using GraphQL’s Schema Definition Language (SDL). GraphQL also provides a means to modify data using what it calls mutations, which use the query language format and tap into the schema data definitions. Queries and mutations are also declared in the schema and may be introspected.
This gives the client a lot of flexibility in how it requests data. Clients can query for the query forms and then request just the types and fields that they have an interest in.
DQL extends the GraphQL query and schema styles with ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access