Ask for what you need, get exactly that
Send a GraphQL query to your API and get exactly what you need.
GraphQL queries always return predictable results.
▪ Get many resources in a single request
GraphQL queries can access the properties of one resource and also
relations of particular resource references between them.
▪ GraphQL APIs get all the data your applications needs in a single
request.
▪ Evolve APIs without versions
As you know that REST APIs requires versions when change your
resource properties. We can add new fields and types to GraphQL API
without impacting existing queries.
▪ By using a single evolving version, GraphQL APIs give apps
continuous access to new features.