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
{{ message }}
This repository has been archived by the owner on Aug 20, 2020. It is now read-only.
Throwing error seems like the right approach here. I think the generally accepted idea is that you shouldn't have two queries with the same name and it seems reasonable to enforce that. I'm open to hearing alternative solutions to this of course.
In a large application with many developers enforcing unique query names across a big whitelist may not be particularly tenable, so imo this should be a choice with the default throwing an error.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Current behavior
When defining two queries with the same operation name, only the last one is kept. All other versions are removed.
Expected behavior
Two options:
Minimal reproduction
Run persistgraphql on
Minimal demo
The text was updated successfully, but these errors were encountered: