@@ -165,7 +165,7 @@ adds additional operation types, or additional directives to an existing schema.
165
165
Schema extensions have the potential to be invalid if incorrectly defined.
166
166
167
167
1 . The Schema must already be defined.
168
- 2 . Any unique directives provided must not already apply to the original Schema.
168
+ 2 . Any non- ` repeatable ` directives provided must not already apply to the original Schema.
169
169
170
170
171
171
## Descriptions
@@ -544,7 +544,7 @@ GraphQL tool or service which adds directives to an existing scalar.
544
544
Scalar type extensions have the potential to be invalid if incorrectly defined.
545
545
546
546
1 . The named type must already be defined and must be a Scalar type.
547
- 2 . Any unique directives provided must not already apply to the original Scalar type.
547
+ 2 . Any non- ` repeatable ` directives provided must not already apply to the original Scalar type.
548
548
549
549
550
550
## Objects
@@ -934,7 +934,7 @@ Object type extensions have the potential to be invalid if incorrectly defined.
934
934
may share the same name .
935
935
3. Any fields of an Object type extension must not be already defined on the
936
936
original Object type .
937
- 4. Any unique directives provided must not already apply to the original Object type .
937
+ 4. Any non -` repeatable ` directives provided must not already apply to the original Object type .
938
938
5. Any interfaces provided must not be already implemented by the original
939
939
Object type .
940
940
6. The resulting extended object type must be a super -set of all interfaces it
@@ -1116,7 +1116,7 @@ Interface type extensions have the potential to be invalid if incorrectly define
1116
1116
4. Any Object type which implemented the original Interface type must also be a
1117
1117
super -set of the fields of the Interface type extension (which may be due to
1118
1118
Object type extension).
1119
- 5. Any unique directives provided must not already apply to the original Interface type .
1119
+ 5. Any non -` repeatable ` directives provided must not already apply to the original Interface type .
1120
1120
1121
1121
1122
1122
## Unions
@@ -1239,7 +1239,7 @@ Union type extensions have the potential to be invalid if incorrectly defined.
1239
1239
3 . All member types of a Union type extension must be unique.
1240
1240
4 . All member types of a Union type extension must not already be a member of
1241
1241
the original Union type.
1242
- 5 . Any unique directives provided must not already apply to the original Union type.
1242
+ 5 . Any non- ` repeatable ` directives provided must not already apply to the original Union type.
1243
1243
1244
1244
## Enums
1245
1245
@@ -1308,7 +1308,7 @@ Enum type extensions have the potential to be invalid if incorrectly defined.
1308
1308
2 . All values of an Enum type extension must be unique.
1309
1309
3 . All values of an Enum type extension must not already be a value of
1310
1310
the original Enum.
1311
- 4 . Any unique directives provided must not already apply to the original Enum type.
1311
+ 4 . Any non- ` repeatable ` directives provided must not already apply to the original Enum type.
1312
1312
1313
1313
1314
1314
## Input Objects
@@ -1437,7 +1437,7 @@ Input object type extensions have the potential to be invalid if incorrectly def
1437
1437
3. All fields of an Input Object type extension must have unique names .
1438
1438
4. All fields of an Input Object type extension must not already be a field of
1439
1439
the original Input Object .
1440
- 5. Any unique directives provided must not already apply to the original Input Object type .
1440
+ 5. Any non -` repeatable ` directives provided must not already apply to the original Input Object type .
1441
1441
1442
1442
1443
1443
## List
@@ -1606,7 +1606,7 @@ Expected Type | Internal Value | Coerced Result
1606
1606
1607
1607
## Directives
1608
1608
1609
- DirectiveDefinition : Description? ` unique ` ? directive @ Name ArgumentsDefinition? on DirectiveLocations
1609
+ DirectiveDefinition : Description? directive @ Name ArgumentsDefinition? ` repeatable ` ? on DirectiveLocations
1610
1610
1611
1611
DirectiveLocations :
1612
1612
- ` | ` ? DirectiveLocation
@@ -1660,10 +1660,10 @@ fragment SomeFragment on SomeType {
1660
1660
}
1661
1661
```
1662
1662
1663
- Directive may be defined as unique per location with the ` unique ` keyword:
1663
+ Directive may be defined as repeatable per location with the ` repeatable ` keyword:
1664
1664
1665
1665
``` graphql example
1666
- unique directive @example on OBJECT | INTERFACE
1666
+ directive @example repeatable on OBJECT | INTERFACE
1667
1667
```
1668
1668
1669
1669
Directive locations may be defined with an optional leading `|` character to aid
@@ -1715,7 +1715,7 @@ directive @invalidExample(arg: String @invalidExample) on ARGUMENT_DEFINITION
1715
1715
### @skip
1716
1716
1717
1717
```graphql
1718
- unique directive @skip (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
1718
+ directive @skip (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
1719
1719
```
1720
1720
1721
1721
The `@skip ` directive may be provided for fields , fragment spreads , and
@@ -1735,7 +1735,7 @@ query myQuery($someTest: Boolean) {
1735
1735
### @include
1736
1736
1737
1737
``` graphql
1738
- unique directive @include (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
1738
+ directive @include (if : Boolean ! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT
1739
1739
```
1740
1740
1741
1741
The `@include ` directive may be provided for fields , fragment spreads , and
@@ -1762,7 +1762,7 @@ must *not* be queried if either the `@skip` condition is true *or* the
1762
1762
### @deprecated
1763
1763
1764
1764
``` graphql
1765
- unique directive @deprecated (
1765
+ directive @deprecated (
1766
1766
reason : String = " No longer supported"
1767
1767
) on FIELD_DEFINITION | ENUM_VALUE
1768
1768
```
0 commit comments