Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC] Add Validation rule for unique directives per location. (graphq…
…l#229) This rule was suggested by @jjergus (graphql#223) to remove ambiguity from execution where the `@skip` and `@ignore` directive rules make the assumption that only one is defined per selection. In general I think this assumption should be upheld by valid queries overall, not just for `@skip` and `@include` so that it can be relied upon for any usage of directives. For example, this allows a potential optimization to use a hashmap keyed on directive name to represent the directives at a location rather than an array. Closes graphql#223
- Loading branch information