Open ScallyGames opened 7 years ago
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.
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