Skip to content

Commit 9df62b5

Browse files
authored
Merge pull request #51 from xenomachina/primitive-type-descriptions
Update primitive type descriptions
2 parents 49138ff + 60065bb commit 9df62b5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/graphql/scalars/java/JavaPrimitives.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public Value<?> valueToLiteral(Object input) {
123123
};
124124

125125
GraphQLLong = GraphQLScalarType.newScalar()
126-
.name("Long").description("Long type")
126+
.name("Long").description("A 64-bit signed integer")
127127
.coercing(longCoercing).build();
128128
}
129129

@@ -202,7 +202,7 @@ public Value<?> valueToLiteral(Object input) {
202202
};
203203

204204
GraphQLShort = GraphQLScalarType.newScalar()
205-
.name("Short").description("Short as Int")
205+
.name("Short").description("A 16-bit signed integer")
206206
.coercing(shortCoercing).build();
207207
}
208208

@@ -281,7 +281,7 @@ public Value<?> valueToLiteral(Object input) {
281281
};
282282

283283
GraphQLByte = GraphQLScalarType.newScalar()
284-
.name("Byte").description("Byte as Int")
284+
.name("Byte").description("An 8-bit signed integer")
285285
.coercing(byteCoercing).build();
286286
}
287287

@@ -368,7 +368,7 @@ public Value<?> valueToLiteral(Object input) {
368368
};
369369

370370
GraphQLBigInteger = GraphQLScalarType.newScalar()
371-
.name("BigInteger").description("java.math.BigInteger")
371+
.name("BigInteger").description("An arbitrary precision signed integer")
372372
.coercing(bigIntCoercing).build();
373373
}
374374

@@ -443,7 +443,7 @@ public Value<?> valueToLiteral(Object input) {
443443
};
444444

445445
GraphQLBigDecimal = GraphQLScalarType.newScalar()
446-
.name("BigDecimal").description("java.math.BigDecimal")
446+
.name("BigDecimal").description("An arbitrary precision signed decimal")
447447
.coercing(bigDecimalCoercing).build();
448448
}
449449

@@ -514,7 +514,7 @@ public Value<?> valueToLiteral(Object input) {
514514
};
515515

516516
GraphQLChar = GraphQLScalarType.newScalar()
517-
.name("Char").description("Char as Character")
517+
.name("Char").description("A UTF-16 code unit; a character on Unicode's BMP")
518518
.coercing(characterCoercing).build();
519519
}
520520
}

0 commit comments

Comments
 (0)