Skip to content

Commit ae65178

Browse files
benjieIvanGoncharov
authored andcommitted
Input Union: expand backwards-compatiblity requirements (#622)
* Input Union: expand backwards-compatiblity requirements * Apply Ivan's suggestions * "Doesn't inhibit schema evolution"
1 parent 4894884 commit ae65178

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

rfcs/InputUnion.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,9 @@ A wide variety of solutions have been explored by the community, and they are ou
135135

136136
## Requirements
137137

138-
1. **Backwards compatible** Adding a new member type to an Input Union must not break previously valid operations
138+
1. **Doesn't inhibit [schema evolution](https://graphql.github.io/graphql-spec/draft/#sec-Validation.Type-system-evolution)** ─ adding a new member type to an Input Union or doing any non-breaking change to existing member types must not result in breaking change. For example, adding a new optional field to member type or changing a field from non-nullable to nullable must not break previously valid client operations.
139+
140+
**Note**: Input Unions may enforce some restrictions on member types, but if they do so compliance with these restrictions must be fully validated during schema building (analagous to how interfaces enforce restrictions on member types).
139141

140142
## Use Cases
141143

0 commit comments

Comments
 (0)