Skip to content

Commit 2f96f36

Browse files
jxnu-liguobinLiGuoBin
andauthored
fix java long max value and run failed (#31)
Co-authored-by: LiGuoBin <liguobin@growingio.com>
1 parent d9b89ea commit 2f96f36

10 files changed

Lines changed: 31 additions & 31 deletions

File tree

content/documentation/master/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ Then our runtime code could be :
263263

264264
static GraphQLSchema buildSchema() {
265265

266-
String sdlSpec = "" +
267-
"type Query {\n" +
268-
" dateField : String @dateFormat \n" +
269-
"}";
266+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
267+
"type Query {\n" +
268+
" dateField : String @dateFormat \n" +
269+
"}";
270270

271271
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
272272

content/documentation/v10/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ Then our runtime code could be :
251251

252252
static GraphQLSchema buildSchema() {
253253

254-
String sdlSpec = "" +
255-
"type Query {\n" +
256-
" dateField : String @dateFormat \n" +
257-
"}";
254+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
255+
"type Query {\n" +
256+
" dateField : String @dateFormat \n" +
257+
"}";
258258

259259
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
260260

content/documentation/v11/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ Then our runtime code could be :
251251

252252
static GraphQLSchema buildSchema() {
253253

254-
String sdlSpec = "" +
255-
"type Query {\n" +
256-
" dateField : String @dateFormat \n" +
257-
"}";
254+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
255+
"type Query {\n" +
256+
" dateField : String @dateFormat \n" +
257+
"}";
258258

259259
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
260260

content/documentation/v12/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ Extended graphql-java scalars
311311
* ``GraphQLBigDecimal``
312312
* ``GraphQLBigInteger``
313313

314-
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 26^3-1) into a JavaScript Number ( max value 2^53 - 1)
314+
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 2^63-1) into a JavaScript Number ( max value 2^53 - 1)
315315
may be problematic for you.
316316

317317

content/documentation/v12/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ Then our runtime code could be :
263263

264264
static GraphQLSchema buildSchema() {
265265

266-
String sdlSpec = "" +
267-
"type Query {\n" +
268-
" dateField : String @dateFormat \n" +
269-
"}";
266+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
267+
"type Query {\n" +
268+
" dateField : String @dateFormat \n" +
269+
"}";
270270

271271
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
272272

content/documentation/v13/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Extended graphql-java scalars
310310
* ``GraphQLBigDecimal``
311311
* ``GraphQLBigInteger``
312312

313-
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 26^3-1) into a JavaScript Number ( max value 2^53 - 1)
313+
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 2^63-1) into a JavaScript Number ( max value 2^53 - 1)
314314
may be problematic for you.
315315

316316

content/documentation/v13/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ Then our runtime code could be :
263263

264264
static GraphQLSchema buildSchema() {
265265

266-
String sdlSpec = "" +
267-
"type Query {\n" +
268-
" dateField : String @dateFormat \n" +
269-
"}";
266+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
267+
"type Query {\n" +
268+
" dateField : String @dateFormat \n" +
269+
"}";
270270

271271
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
272272

content/documentation/v14/schema.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ Extended graphql-java scalars
310310
* ``GraphQLBigDecimal``
311311
* ``GraphQLBigInteger``
312312

313-
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 26^3-1) into a JavaScript Number ( max value 2^53 - 1)
313+
Note that the semantics around the extended scalars might not be understood by your clients. For example mapping a Java Long (max value 2^63-1) into a JavaScript Number ( max value 2^53 - 1)
314314
may be problematic for you.
315315

316316

content/documentation/v14/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@ Then our runtime code could be :
263263

264264
static GraphQLSchema buildSchema() {
265265

266-
String sdlSpec = "" +
267-
"type Query {\n" +
268-
" dateField : String @dateFormat \n" +
269-
"}";
266+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
267+
"type Query {\n" +
268+
" dateField : String @dateFormat \n" +
269+
"}";
270270

271271
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
272272

content/documentation/v9/sdl-directives.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -251,10 +251,10 @@ Then our runtime code could be :
251251

252252
static GraphQLSchema buildSchema() {
253253

254-
String sdlSpec = "" +
255-
"type Query {\n" +
256-
" dateField : String @dateFormat \n" +
257-
"}";
254+
String sdlSpec = "directive @dateFormat on FIELD_DEFINITION\n" +
255+
"type Query {\n" +
256+
" dateField : String @dateFormat \n" +
257+
"}";
258258

259259
TypeDefinitionRegistry registry = new SchemaParser().parse(sdlSpec);
260260

0 commit comments

Comments
 (0)