Introduction
What is GraphQL?
GraphQL is a query language for APIs and a runtime for fulfilling those queries with your existing data. GraphQL provides a complete and understandable description of the data in your API, gives clients the power to ask for exactly what they need and nothing more, makes it easier to evolve APIs over time, and enables powerful developer tools.
source: https://graphql.org/
Why CyberWire is using GraphQL ?
CyberWire has chosen GraphQL for our API because it offers significantly more flexibility for developers. The ability to define precisely the data you want—and only the data you want—is a powerful advantage over the REST API endpoints. GraphQL lets you replace multiple REST requests with a single call to fetch the data you specify. For example a list of glossary terms can be fetched with only the term
and definition
fields.