We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb580ff commit 2d0b6f4Copy full SHA for 2d0b6f4
README.md
@@ -249,6 +249,17 @@ object StarWarsSchema {
249
var starWarsSchema = newGraphQLSchema(query = queryType).build()
250
}
251
```
252
+Notice that the syntax for the name and type definition for `field` and `argument` is slightly different:
253
+
254
+```kotlin
255
+.field("name"..GraphQLString)
256
+```
257
+and
258
259
+.argument(+"id"..!GraphQLString)
260
261
+Notice the `+` added for argument definition syntax?
262
+Also notice that for defining a field/argument as non-nullable with prefix the type name with `!`
263
264
<a name="opensource"></a>
265
## Open source library included/modified or that inspired GraphKool
0 commit comments