Skip to content

Commit 2d0b6f4

Browse files
author
daely
committed
updated README
1 parent cb580ff commit 2d0b6f4

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,17 @@ object StarWarsSchema {
249249
var starWarsSchema = newGraphQLSchema(query = queryType).build()
250250
}
251251
```
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+
```kotlin
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 `!`
252263

253264
<a name="opensource"></a>
254265
## Open source library included/modified or that inspired GraphKool

0 commit comments

Comments
 (0)