importAllFragmentsFrom multiple packages #7764
Unanswered
alexvcasillas
asked this question in
Q&A
Replies: 1 comment
-
@alexvcasillas did you find any solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Good morning everyone :)
I've been working a lot with
graphql-code-generator
lately and it's been a great experience so far, congratulations to the team and all contributors 👏🏻I have a small question related to
importAllFragmentsFrom
from thenear-operation-file
preset. In the docs, it says that it can receive astring
or anobject
but I couldn't find any proper example of theobject
that it should receive. To state my case, I'm working on amonorepo
and I have a query that imports fragments from different packages and I can tellimportAllFragments: '~@my-app/fragment-one-pkg
and it will work fine, but this query could have fragments from@my-app/fragment-two-pkg
as it is an architectural decision to split it this way. Is there a way that I can haveimportAllFragmentsFrom
to use multiple packages? :)Thank you so much in advance :)
Beta Was this translation helpful? Give feedback.
All reactions