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
The generator throws if it encounters duplicated operation names (requested in #720, implemented in #913).
This is perfectly correct if all generated code goes to a single file. However, with near-operation-file preset, duplicated names aren't a problem any longer (unless the duplication would be in the same file). It seems like the validation should be on output level rather than on global level.
I'm still relatively new to GraphQL world so I'm not sure what are the best practices, maybe it's the best to have unique names anyway, but with my current understanding the requirement of unique names across relatively large application seems to be limiting.
The text was updated successfully, but these errors were encountered:
The generator throws if it encounters duplicated operation names (requested in #720, implemented in #913).
This is perfectly correct if all generated code goes to a single file. However, with
near-operation-file
preset, duplicated names aren't a problem any longer (unless the duplication would be in the same file). It seems like the validation should be on output level rather than on global level.I'm still relatively new to GraphQL world so I'm not sure what are the best practices, maybe it's the best to have unique names anyway, but with my current understanding the requirement of unique names across relatively large application seems to be limiting.
The text was updated successfully, but these errors were encountered: