Skip to content

Support simple list cases in FieldPolicyCacheResolver #155

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2025

Conversation

BoD
Copy link
Collaborator

@BoD BoD commented May 5, 2025

Handle simple cases like:

type Query {
  books(ids: [String!]!)
}
extend type Query @fieldPolicy(forField: "books", keyArgs: "ids")

where

  • the field is a flat list
  • keyArgs is a single arg which is a flat list

Other cases fall back to what we had previously.

See #142.

@BoD BoD requested a review from martinbonnin as a code owner May 5, 2025 10:56
@BoD BoD merged commit ff8f4d8 into main May 16, 2025
2 checks passed
@BoD BoD deleted the field-policy-resolver-simple-lists branch May 16, 2025 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants