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 pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More GraphQL interview questions

View all →