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-generatorlately and it's been a great experience so far, congratulations to the team and all contributors 👏🏻I have a small question related to
importAllFragmentsFromfrom thenear-operation-filepreset. In the docs, it says that it can receive astringor anobjectbut I couldn't find any proper example of theobjectthat it should receive. To state my case, I'm working on amonorepoand I have a query that imports fragments from different packages and I can tellimportAllFragments: '~@my-app/fragment-one-pkgand it will work fine, but this query could have fragments from@my-app/fragment-two-pkgas it is an architectural decision to split it this way. Is there a way that I can haveimportAllFragmentsFromto use multiple packages? :)Thank you so much in advance :)
Beta Was this translation helpful? Give feedback.
All reactions