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

[menu-bar] Configure Apollo possibleTypes #62

Merged
merged 3 commits into from Sep 21, 2023

Conversation

gabrieldonadel
Copy link
Member

@gabrieldonadel gabrieldonadel commented Sep 15, 2023

Why

For apollo to work propperly with polymorphic relationships we need to declare possibleTypes

How

Configure Apollo possibleTypes using @graphql-codegen/fragment-matcher to automatically define polymorphic relationships between schema's types and refactor apollo client so all windows share the same client object

Test Plan

Check if data is being handled correctly when querying a UserActor fragment

@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/apollo-possible-types branch from 698105e to 13b41e5 Compare September 15, 2023 19:43
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/apollo-possible-types branch from 13b41e5 to 6e9fe38 Compare September 21, 2023 02:53
@gabrieldonadel gabrieldonadel force-pushed the @gabrieldonadel/apollo-possible-types branch from 5f651ef to ff6bc8c Compare September 21, 2023 12:23
@gabrieldonadel gabrieldonadel merged commit cdab818 into main Sep 21, 2023
1 check passed
@gabrieldonadel gabrieldonadel deleted the @gabrieldonadel/apollo-possible-types branch September 21, 2023 12:28
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.

None yet

1 participant