Skip to content

Commit

Permalink
Interface fields do not need to be implemented in order.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jun 12, 2024
1 parent d7d9e37 commit 7170d82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Section 3 -- Type System.md
Original file line number Diff line number Diff line change
Expand Up @@ -310,8 +310,8 @@ GraphQL supports two abstract types: interfaces and unions.

An `Interface` defines an ordered set of fields; `Object` types and other
Interface types which implement this Interface are guaranteed to implement those
fields. Whenever a field claims it will return an Interface type, it will return
a valid implementing Object type during execution.
fields (in any order). Whenever a field claims it will return an Interface type,
it will return a valid implementing Object type during execution.

A `Union` defines a set of possible types; similar to interfaces, whenever the
type system claims a union will be returned, one of the possible types will be
Expand Down

0 comments on commit 7170d82

Please sign in to comment.