seniorGraphQL
What is the `@client` directive in Apollo Client?
Updated Apr 28, 2026
Short answer
The @client directive instructs Apollo Client to resolve a field using local state instead of sending it to the GraphQL server.
Deep explanation
Apollo Client can manage local application state (like Redux). By writing local resolvers and appending @client to query fields, you can mix server-side data and local UI state in a single query.
Unlock with a Pro subscription to view this section.
View pricingReal-world example
No real-world example available yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProCommon mistakes
No common mistakes listed yet.
Unlock with a Pro subscription to view this section.
Upgrade to ProFollow-up questions
No follow-up questions available yet.
Unlock with a Pro subscription to view this section.
Upgrade to Pro