@@ -2094,25 +2094,25 @@ type ExampleType {
2094
2094
### @experimental
2095
2095
2096
2096
```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
2098
2100
```
2099
2101
2100
2102
The `@experimental ` _built -in directive_ is used within the type system
2101
2103
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 .
2104
2106
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 .
2108
2110
2109
2111
```graphql example
2110
2112
type ExampleType {
2111
2113
newField : String @experimental
2112
2114
2113
- anotherField (
2114
- newArg : String @experimental
2115
- ): String
2115
+ anotherField (newArg : String @experimental ): String
2116
2116
}
2117
2117
```
2118
2118
@@ -2121,9 +2121,7 @@ default) arguments or input object field definitions.
2121
2121
2122
2122
```graphql counter -example
2123
2123
type ExampleType {
2124
- invalidField (
2125
- newArg : String ! @experimental
2126
- ): String
2124
+ invalidField (newArg : String ! @experimental ): String
2127
2125
}
2128
2126
```
2129
2127
0 commit comments