Skip to content

Commit 218e0da

Browse files
committed
Improved repeatable directive example
1 parent 5c8c4bd commit 218e0da

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

spec/Section 3 -- Type System.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1663,7 +1663,13 @@ fragment SomeFragment on SomeType {
16631663
Directive may be defined as repeatable per location with the `repeatable` keyword:
16641664

16651665
```graphql example
1666-
directive @example repeatable on OBJECT | INTERFACE
1666+
directive @delegateField(name: String!) repeatable on OBJECT | INTERFACE
1667+
1668+
type Book @delegateField(name: "pageCount") @delegateField(name: "author") {
1669+
id: ID!
1670+
}
1671+
1672+
extend type Book @delegateField(name: "index")
16671673
```
16681674

16691675
Directive locations may be defined with an optional leading `|` character to aid

0 commit comments

Comments
 (0)