GraphQL
5 articles
GraphQL Batched Queries
GraphQL batched queries allow you to retrieve multiple resources in a single request, reducing the number of round trips between client and server. This technique improves application performance by sending an array of queries to be executed together.
GraphQL Federation
GraphQL Federation allows you to create a unified GraphQL API across multiple independent services. This guide covers defining federated schemas, setting up an Apollo Gateway, and querying the federated system.
GraphQL from Multiple Data Sources
GraphQL excels at integrating data from multiple sources. This guide covers four key techniques: resolver functions, federation, schema stitching, and batched queries for combining REST APIs, databases, and multiple GraphQL services.
GraphQL Resolver Functions
GraphQL resolver functions let you fetch data from different sources for each field in your schema. This example shows how to retrieve user data from a SQL database, REST API, and MongoDB simultaneously.
GraphQL Schema Stitching
Schema stitching allows you to combine separate GraphQL APIs into a single unified schema. This guide shows how to merge a products API and reviews API using graphql-tools' makeExecutableSchema function.