Skip to content

Commit f5bd94e

Browse files
committed
Declare order
1 parent b5ecff0 commit f5bd94e

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

spec/Section 3 -- Type System.md

+11-6
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,8 @@ of rules must be adhered to by every Object type in a GraphQL schema.
920920
returns {true}.
921921
4. If argument type is Non-Null and a default value is not defined:
922922
1. The `@deprecated` directive must not be applied to this argument.
923-
3. An object type may declare that it implements one or more unique interfaces.
923+
3. An object type may declare that it implements a list of one or more unique
924+
interfaces.
924925
4. An object type must be a super-set of all interfaces it implements:
925926
1. Let this object type be {objectType}.
926927
2. For each interface declared implemented as {interfaceType},
@@ -1473,7 +1474,7 @@ EnumValuesDefinition : { EnumValueDefinition+ }
14731474
EnumValueDefinition : Description? EnumValue Directives[Const]?
14741475

14751476
GraphQL Enum types, like Scalar types, also represent leaf values in a GraphQL
1476-
type system. However Enum types describe the set of possible values.
1477+
type system. However Enum types describe the list of possible values.
14771478

14781479
Enums are not references for a numeric value, but are unique values in their own
14791480
right. They may serialize as a string: the name of the represented value.
@@ -1491,7 +1492,7 @@ enum Direction {
14911492

14921493
**Result Coercion**
14931494

1494-
GraphQL services must return one of the defined set of possible values. If a
1495+
GraphQL services must return one of the defined list of possible values. If a
14951496
reasonable coercion is not possible they must raise a _field error_.
14961497

14971498
**Input Coercion**
@@ -1547,9 +1548,9 @@ InputFieldsDefinition : { InputValueDefinition+ }
15471548
Fields may accept arguments to configure their behavior. These inputs are often
15481549
scalars or enums, but they sometimes need to represent more complex values.
15491550

1550-
A GraphQL Input Object defines a set of input fields; the input fields are
1551-
either scalars, enums, or other input objects. This allows arguments to accept
1552-
arbitrarily complex structs.
1551+
A GraphQL Input Object defines a list of named input fields; the input fields
1552+
are either scalars, enums, or other input objects. This allows arguments to
1553+
accept arbitrarily complex structs.
15531554

15541555
In this example, an Input Object called `Point2D` describes `x` and `y` inputs:
15551556

@@ -1936,6 +1937,10 @@ A GraphQL schema describes directives which are used to annotate various parts
19361937
of a GraphQL document as an indicator that they should be evaluated differently
19371938
by a validator, executor, or client tool such as a code generator.
19381939

1940+
Directives can accept arguments to further specify their behavior. Directive
1941+
arguments are defined as a list of all possible argument names and their
1942+
expected input types.
1943+
19391944
**Built-in Directives**
19401945

19411946
:: A _built-in directive_ is any directive defined within this specification.

0 commit comments

Comments
 (0)