Skip to content

Commit 4291955

Browse files
committed
format
1 parent 51158bc commit 4291955

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

spec/Section 3 -- Type System.md

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2094,25 +2094,25 @@ type ExampleType {
20942094
### @experimental
20952095

20962096
```graphql
2097-
directive @experimental(reason: String = "Experimental") on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
2097+
directive @experimental(
2098+
reason: String = "Experimental"
2099+
) on FIELD_DEFINITION | ARGUMENT_DEFINITION | INPUT_FIELD_DEFINITION | ENUM_VALUE
20982100
```
20992101

21002102
The `@experimental` _built-in directive_ is used within the type system
21012103
definition language to indicate experimental portions of a GraphQL service's
2102-
schema, such as experimental fields on a type, arguments on a field, input fields on an input
2103-
type, or values of an enum type.
2104+
schema, such as experimental fields on a type, arguments on a field, input
2105+
fields on an input type, or values of an enum type.
21042106

2105-
In this example type definition, `newField` and `newArg` are experimental and might be changed
2106-
in a backward incompatible way. For an example, it could be renamed and/or its
2107-
type may be changed.
2107+
In this example type definition, `newField` and `newArg` are experimental and
2108+
might be changed in a backward incompatible way. For an example, it could be
2109+
renamed and/or its type may be changed.
21082110

21092111
```graphql example
21102112
type ExampleType {
21112113
newField: String @experimental
21122114

2113-
anotherField(
2114-
newArg: String @experimental
2115-
): String
2115+
anotherField(newArg: String @experimental): String
21162116
}
21172117
```
21182118

@@ -2121,9 +2121,7 @@ default) arguments or input object field definitions.
21212121

21222122
```graphql counter-example
21232123
type ExampleType {
2124-
invalidField(
2125-
newArg: String! @experimental
2126-
): String
2124+
invalidField(newArg: String! @experimental): String
21272125
}
21282126
```
21292127

0 commit comments

Comments
 (0)