GraphQL and DQL
Learn about the GraphQL query language and discover how Dgraph’s DQL extends its functionality.
We'll cover the following...
What is GraphQL?
Whenever we talk about web APIs, GraphQL invariably springs to mind. Created by Facebook and open sourced since 2015, GraphQL supports data access through APIs for reading, writing, and subscribing to changes to data.
It sounds like we have a new graph query language to play with. But despite the suggestive name, GraphQL is not strictly a query language for graphs. The name comes from its ability to query over a mixed-source object graph, although it isn’t limited to any particular back-end data model. Rather, it defines a query interface in which queries are tree-shaped affairs, and result sets are returned as document trees. Users get to specify just the data items ...