summaryrefslogtreecommitdiff
path: root/school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts')
-rw-r--r--school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts b/school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts
new file mode 100644
index 0000000..c1671c2
--- /dev/null
+++ b/school/node_modules/graphql/validation/rules/OverlappingFieldsCanBeMergedRule.d.ts
@@ -0,0 +1,13 @@
+import { ASTVisitor } from '../../language/visitor';
+import { ValidationContext } from '../ValidationContext';
+
+/**
+ * Overlapping fields can be merged
+ *
+ * A selection set is only valid if all fields (including spreading any
+ * fragments) either correspond to distinct response names or can be merged
+ * without ambiguity.
+ */
+export function OverlappingFieldsCanBeMergedRule(
+ context: ValidationContext,
+): ASTVisitor;