Skip to content

Commit 8646821

Browse files
nebnagrombbakerman
authored andcommitted
Added some instructions for registering the scalar and using it
1 parent 19c7f53 commit 8646821

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
@@ -20,6 +20,17 @@ or the following into your Maven config
2020
<artifactId>graphql-java-extended-scalars</artifactId>
2121
<version>1.0</version>
2222
</dependency>
23+
24+
Then register the scalar with graphql-java
25+
26+
RuntimeWiring.newRuntimeWiring().scalar(ExtendedScalars.DateTime)
27+
28+
And use it in your schema
29+
30+
scalar DateTime
31+
type Something {
32+
someDateTime: DateTime
33+
}
2334

2435
## DateTime Scalars
2536

0 commit comments

Comments
 (0)