You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the new Create React App 2.X which now has official support for loading .graphql files.
While migration I have a issue if a fragment #imports a fragment. The first reference works (Query #import Fragment) but the second level and higher (Query #import Fragment #import Fragment ...) doesn't work.
(I'm not sure if CRA uses this package to load .graphql files)
In the intervening years, the proposed solutions have evolved a bit. To save future people from following the rabbit hole as I did, the most up-to-date PR is at #227. However, that hasn't been touched in over 2 years, so I seriously doubt this will be fixed anytime soon. From what I can see, there simply isn't anyone at Apollo who is lending this work the necessary sponsorship or reviews.
Hi, Consider this:
FieldBaseFragment.gql
FieldDetailFragment.gql
mutations.js
Invoking
CreateFieldMutation
chokes and throws error thatError: GraphQL error: Unknown fragment "FieldBaseFragment"
Using:
graphql-tag==2.4.2
also tested on latest version same error.The text was updated successfully, but these errors were encountered: