This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 121
Queries with fragments don't work with Artemis v7 #350
Labels
bug
Something isn't working
Comments
@paoloposo |
@paoloposo |
@vasilich6107 May I know how to fix this issue? Using fragments in Artemis suddenly return null when used with |
Is this fixed? I'm using ^7.8.0-beta and fragment is still not working |
@thphuc If you have an issue create new one with reply |
Hi @vasilich6107 thanks for your quick response. Yes, I have to use FetchPolicy.noCache to make my fragment work, like @samuelchanx mentioned |
See #393 for the solution |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Bug description
After upgrading to version 7 in order to migrate my app to null-safety, I ran into an issue where my queries would fail. After some investigating I narrowed it down to the use of fragments in my queries.
I made a minimal working example: https://github.com/paoloposo/artemis_test
It uses the Pokemon sample API. There are two queries in the example that request the same data. One has all the fields directly in the query:
The other one uses a fragment:
The first one, without the fragment, produces the expected result:
The one with the fragment produces this, however:
Specs
Artemis version: 7.1.1-beta.1
build.yaml:
Artemis output:
The text was updated successfully, but these errors were encountered: