Skip to content
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

Normalize fields for all guides queries #32

Merged
merged 5 commits into from
Jan 11, 2021
Merged

Conversation

hallee
Copy link
Contributor

@hallee hallee commented Jan 11, 2021

We've begun using ApolloClient 3.0's relayStylePagination via field policies.

As it turns out, specifying keyArgs for fields causes a crash in ApolloClient if some queries are missing the key fields.

This PR normalizes all our guides( queries so that each of them has at least a where field and a last field, which should help avoid any cache mismatch issues and also this nasty crash.

@hallee hallee merged commit 9ec7968 into main Jan 11, 2021
@hallee hallee deleted the normalize-guides-queries branch January 11, 2021 20:08
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.

3 participants