Learn GraphQL best practices in this week’s RapidAPI Comic!
GraphQL is typically served over HTTP and a single endpoint. So HTTP is recommended to support GraphQL capabilities.
Pagination optimizes performance. GraphQL has various API design possibilities for pagination.
GraphQL services typically use JSON, which can be compressed by enabling GZip. JSON is also familiar to API developers, easy to read, and debug.
The GraphQL Schema supports the continuous evolution of APIs. So although you can version them, it's not recommended.
GraphQL fields can be nullable or non-nullable, but all fields are nullable by default. Selecting certain fields to be non-nullable guarantees the client that those requested fields will not return null.