---
title: "Querying Strategies for GraphQL Clients"
description: "GraphQL client queries tend to grow slower and harder to roll out as features accumulate, and Shopify's Orders & Fulfillments web and mobile teams work through a progression of strategies against a sub-one-second mobile page load goal."
url: "https://swe.quest/articles/querying-strategies-for-graphql-clients-25fcea5a0897f025"
canonical: "https://shopify.engineering/querying-strategies-graphql-clients"
source: "Shopify Engineering"
published: "2021-06-15"
difficulty: "medium"
kind: "How-to"
reading_minutes: 8
tags: ["graphql","mobile","web-performance","frontend"]
---

# Querying Strategies for GraphQL Clients

A post on [Shopify Engineering](https://swe.quest/sources/shopify.md), published 2021-06-15, 8 min read, How-to. Original: [https://shopify.engineering/querying-strategies-graphql-clients](https://shopify.engineering/querying-strategies-graphql-clients)

## Summary

GraphQL client queries tend to grow slower and harder to roll out as features accumulate, and Shopify's Orders & Fulfillments web and mobile teams work through a progression of strategies against a sub-one-second mobile page load goal. Starting from a single products query, they add cursor-style pagination with page-size parameters and hasNextPage, and gate new fields behind feature flags using @include/@skip directives. Chaining queries on remote flags is costly because it serializes round-trips, so it should be avoided or moved app-wide. Splitting non-paginated parts such as filters, permissions and banners into parallel queries enables faster loads, partial rendering and fewer merge conflicts, provided performance tripwires and server-side monitoring are in place.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [GraphQL](https://swe.quest/tags/graphql.md) (Backend & APIs)
- [Mobile](https://swe.quest/tags/mobile.md) (Web & mobile)
- [Web performance](https://swe.quest/tags/web-performance.md) (Web & mobile)
- [Frontend](https://swe.quest/tags/frontend.md) (Web & mobile)

## Prerequisites

- GraphQL queries and directives ([easy posts on GraphQL](https://swe.quest/tags/graphql.md?difficulty=easy))
- Pagination concepts

## Keywords

GraphQL, Shopify, @include, @skip

## Related posts

- [Shopify’s journey to faster breadth-first GraphQL execution](https://swe.quest/articles/shopify-s-journey-to-faster-breadth-first-graphql-execution-83f0f58b8c4dabd1.md): Shopify Engineering · 2026-03-12 · Hard · 14 min read · GraphQL, Performance engineering, Ruby, Query engines
  Shopify built GraphQL Cardinal, a breadth-first GraphQL execution engine that calls each field resolver once with the full set of objects at that level instead of once per object.
- [How we use GraphQL at Europe's largest fashion e-commerce company](https://swe.quest/articles/how-we-use-graphql-at-europe-s-largest-fashion-e-commerce-company-98c53d6b8b858147.md): Zalando Engineering · 2021-03-03 · Easy · 6 min read · GraphQL, API design, Microservices, E-commerce, Resilience
  Zalando replaced a sprawl of per-page and per-platform Backend-for-Frontend services with a single unified GraphQL API owned via a shared monorepo across 12+ domain teams.
- [Rate Limiting GraphQL APIs by Calculating Query Complexity](https://swe.quest/articles/rate-limiting-graphql-apis-by-calculating-query-complexity-58ede655d49d3a42.md): Shopify Engineering · 2021-06-22 · Medium · 6 min read · GraphQL, API design, Resilience
  Shopify's GraphQL Admin API rate-limits by calculated query cost instead of request count: clients get 50 points per second up to a 1,000-point bucket, and each query is priced by static analysis before execution.
- [Optimize GraphQL Server with Lookaheads](https://swe.quest/articles/optimize-graphql-server-with-lookaheads-2ec291286b4baa0c.md): Zalando Engineering · 2021-03-17 · Medium · 12 min read · GraphQL, API design, Performance engineering, JavaScript
  Zalando's GraphQL server uses lookaheads on the resolver's info AST (fieldNodes and selection sets) to work out which sub-fields a query requests, then forwards them to backends that support partial responses via a fields parameter.
- [Building single page applications with ClickHouse](https://swe.quest/articles/building-single-page-applications-with-clickhouse-59259114384b9655.md): ClickHouse · 2024-10-10 · Medium · 20 min read · Analytics & OLAP, Frontend, Identity & auth, API design, JavaScript
  ClickHouse can serve as a direct browser-queried backend for single page applications, removing the API server layer for demos, prototypes and analytics UIs.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
