GraphQL APIs are organized in terms of types and fields, not endpoints.
- With type system. (Example:
server_1.js
)- auto doc
- auto ensure frontend only ask for whats possible
- auto provide clear error message
- Ask for what you need, get exactly that. (Example:
server_3.js
) - Get many resources in a single request. (Example:
server_4.js
)
- Schema: A description of your data model
- Resolver: One function for one API endpoint defined in Schema