Skip to content

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.

GraphQLAPI DesignPerformance OptimizationBatch ProcessingWeb Development

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.

GraphQLAPI DesignMicroservicesFederationBackend Development

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.

GraphQLAPIsData IntegrationBackend DevelopmentMicroservices

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.

GraphQLResolversAPI DevelopmentData FetchingBackend DevelopmentJavaScript

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.

GraphQLSchema DesignAPI IntegrationBackend DevelopmentCode Tutorial