a github user (Live Demo) • REST example - api.github.com/users/kingisaac95 • GraphQL example - graphqlhub.com/playground GraphQL queries return predictable results
types and fields, not endpoints. Unlike RESTful APIs where an endpoint is defined for each resource, you can access the capabilities of your data from a single endpoint with GraphQL.
arguments in a single request. Aliases let you do that - rename the result of a field to anything you want. Example (Live Demo) Requesting for more than one user with a single request
Access many resources with one request • Conditional requests • Query single field with multiple arguments • Scaling your application Learn more graphql.org/learn/