near-operation-file that creates a file per operation #9692
Unanswered
AaronBuxbaum
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now,
near-operation-file
creates a file per source file (src/__generated__/mutations.ts
). However, Apollo codegen created a file per operation (src/__generated__/MyMutation.ts
;src/__generated__/AnotherMutation.ts
; ...)While I think that
near-operation-file
has the correct settings, it would be a tremendous amount of work to migrate all of my code to the updated operations -- even worse, slight differences between Apollo generation and codegen generation means that we effectively have to move over all operations all at the same time for Typescript to pass. If we had a way to generate a file per GraphQL operation, it would allow a much easier transition, and then we could iterate on top of that change to move to the more correct per-file approach.Beta Was this translation helpful? Give feedback.
All reactions