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 not sure if this is the correct thing to do but I came up with a 'workaround'? Can someone confirm this is the correct way and there will be no odd side effects of doing this?
Are you using the webpack loader by chance? If so, you can use imports like this to get fragment definitions in your queries for .graphql files. Let me know if this helps!
I see docs for this...
but it doesn't show how to do this for existing .graphql files. I tried the following but to no avail.
Ex: query.graphql
query Foo ....
Ex: fragments.graphql
fragment Bar on Baz ...
Ex: someQueryFile.js:
Is this supported? Or do the query and fragments HAVE to be inlined as shown in the example documentation?
The text was updated successfully, but these errors were encountered: