-
Notifications
You must be signed in to change notification settings - Fork 155
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
near-operation-file-preset: Cannot use flattenGeneratedTypes w/ fragments across files #112
Comments
The actual issue here is the fact that we are applying the To get this solved, we need to apply the @ardatan fyi :) |
We are also running into this (dotansimha/graphql-code-generator#6199). The |
I'm continuing to run into errors due to this issue and I'd love to see a fix for it 🙂 I'm in the process of incrementally migrating from Apollo code-generated typedefs to graphql-code-generator typedefs and this is the last issue that prevents full interoperability between the two.
I tried digging into the graphql-tools code to accomplish this, but I couldn't get it to work. It was a while ago and I was just hacking around in the built lib within my @dotansimha, @ardatan, are there any additional details or files you could point me to where the change should be made? I'd be happy to give it another try in a more rigorous way. Thanks 🙏🏻 |
Up, have the same issue |
Yes, this is not solved yet |
Still having this issue. |
Bump |
Describe the bug
Using the
flattenGeneratedTypes
option (required to workaround dotansimha/graphql-code-generator#4212) causes GraphQL to fail to locate fragments when usingnear-operation-file-preset
and the fragments are located in other files (regardless whether the queries are written in.graphql
or.ts
files w/ imports).Similar to dotansimha/graphql-code-generator#528
To Reproduce
https://codesandbox.io/s/empty-fast-xl915?file=/codegen.yml
Expected behavior
Should compile fine with or without
flattenGeneratedTypes
.Environment:
n/a
The text was updated successfully, but these errors were encountered: