1
1
# Extended Scalars for graphql-java
2
2
3
3
[ ![ Build Status] ( https://github.com/graphql-java/graphql-java-extended-scalars/actions/workflows/master.yml/badge.svg )] ( https://github.com/graphql-java/graphql-java-extended-scalars/actions/workflows/master.yml )
4
- [ ![ Latest Release] ( https://maven-badges.herokuapp.com /maven-central/com.graphql-java/graphql-java-extended-scalars/badge.svg )] ( https://maven-badges.herokuapp.com/maven-central/com.graphql-java/graphql-java-extended-scalars/ )
4
+ [ ![ Latest Release] ( https://img.shields.io /maven-central/v/ com.graphql-java/graphql-java-extended-scalars?versionPrefix=17 )] ( https://maven-badges.herokuapp.com/maven-central/com.graphql-java/graphql-java-extended-scalars/ )
5
5
[ ![ MIT licensed] ( https://img.shields.io/badge/license-MIT-green )] ( https://github.com/graphql-java/graphql-java-extended-scalars/blob/master/LICENSE.md )
6
6
7
7
8
8
This library provides extended scalars for [ graphql-java] ( https://github.com/graphql-java/graphql-java )
9
9
10
- Scalars in graphql are the leaf nodes of a query, the non compound values that cant be queried further via sub field selections.
10
+ Scalars in graphql are the leaf nodes of a query, the non- compound values that can't be queried further via sub- field selections.
11
11
12
12
The graphql standard specifies that the ` String ` , ` Int ` , ` Float ` , ` Boolean ` and ` ID ` scalars must be present in a graphql type
13
13
system but after that it is up to an implementation about what custom scalars are present.
@@ -16,14 +16,14 @@ You would use custom scalars when you want to describe more meaningful behavior
16
16
17
17
To use this library put the following into your gradle config
18
18
19
- compile 'com.graphql-java:graphql-java-extended-scalars:16 .0.0'
19
+ compile 'com.graphql-java:graphql-java-extended-scalars:17 .0.0'
20
20
21
21
or the following into your Maven config
22
22
23
23
<dependency>
24
24
<groupId>com.graphql-java</groupId>
25
25
<artifactId>graphql-java-extended-scalars</artifactId>
26
- <version>16 .0.0</version>
26
+ <version>17 .0.0</version>
27
27
</dependency>
28
28
29
29
> Note:
@@ -33,8 +33,10 @@ or the following into your Maven config
33
33
> use 15.0.0 or above for graphql-java 15.x and above
34
34
>
35
35
> use 16.0.0 or above for graphql-java 16.x and above
36
+ >
37
+ > use 17.0 or above for graphql-java 17.x and above
36
38
37
- Its currently available from JCenter repo and Maven central .
39
+ It's currently available from Maven Central .
38
40
39
41
Then register the scalar with graphql-java
40
42
@@ -277,6 +279,21 @@ And use it in a SDL schema like this :
277
279
278
280
Note : A future version of the graphql specification may add this capability but in the meantime you can use this facility .
279
281
282
+ ## Java Primitives
283
+ * `GraphQLLong `
284
+ * A scalar which represents `java .lang .Long `
285
+ * `GraphQLShort `
286
+ * A scalar which represents `java .lang .Short `
287
+ * `GraphQLByte `
288
+ * A scalar which represents `java .lang .Byte `
289
+ * `GraphQLBigDecimal `
290
+ * A scalar which represents `java .math .BigDecimal `
291
+ * `GraphQLBigInteger `
292
+ * A scalar which represents `java .math .BigInteger `
293
+ * `GraphQLChar `
294
+ * A scalar which represents `java .lang .Character `
295
+
296
+
280
297
## Other Scalars
281
298
282
299
* `Url `
0 commit comments