From cbe48731dbfbf5c93584c2657d3b1e6ca9f9cba9 Mon Sep 17 00:00:00 2001 From: Brad Baker Date: Sat, 24 Nov 2018 11:30:22 +1100 Subject: [PATCH 1/4] Added extended scalar blog entry --- content/blog/introducing-extended-scalars.md | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 content/blog/introducing-extended-scalars.md diff --git a/content/blog/introducing-extended-scalars.md b/content/blog/introducing-extended-scalars.md new file mode 100644 index 00000000..13b4acb3 --- /dev/null +++ b/content/blog/introducing-extended-scalars.md @@ -0,0 +1,33 @@ ++++ +title = "Introducing graphql-java-extended-scalars" +author = "Brad Baker" +tags = [] +categories = [] +date = 2018-11-24T01:00:00+10:00 ++++ + +One of the most common questions we get in graphql-java land is "can we have a datetime scalar". + +This is not defined by the graphql specification per se so we are reluctant to add it to the core library and then have it turn +up later as an officially specified type. + +But it really is a badly needed type in your graphql arsenal and hence graphql-java-extended-scalars was born + +https://github.com/graphql-java/graphql-java-extended-scalars + +This will be a place where we can add non standard but useful extensions to graphql-java. + +The major scalars we have added on day one are + + * A aforementioned DateTime scalar as well as a Date and Time scalar + * A Object scalar or sometimes know as a JSON scalar that allows a map of values to be returned as a scalar value + * Some numeric scalars that constrain the values allowed + * A Regex scalar that allows a string to fit a regular expression + * A Url scalar that produces `java.net.URL` objects at runtime + * And finally an aliasing technique that allows you to create more meaningfully named scalar values + + We hope you find them useful. + + +Cheers,
+Brad \ No newline at end of file From 08837967917fcce1f9ceb3981ec448f5785ded40 Mon Sep 17 00:00:00 2001 From: Brad Baker Date: Sat, 24 Nov 2018 11:31:59 +1100 Subject: [PATCH 2/4] Typo --- content/blog/introducing-extended-scalars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/introducing-extended-scalars.md b/content/blog/introducing-extended-scalars.md index 13b4acb3..36b54b3e 100644 --- a/content/blog/introducing-extended-scalars.md +++ b/content/blog/introducing-extended-scalars.md @@ -19,7 +19,7 @@ This will be a place where we can add non standard but useful extensions to grap The major scalars we have added on day one are - * A aforementioned DateTime scalar as well as a Date and Time scalar + * The aforementioned DateTime scalar as well as a Date and Time scalar * A Object scalar or sometimes know as a JSON scalar that allows a map of values to be returned as a scalar value * Some numeric scalars that constrain the values allowed * A Regex scalar that allows a string to fit a regular expression From b8e4fe4c3af5ed7ce4ea93b76acb0ccdd5e9afe7 Mon Sep 17 00:00:00 2001 From: Brad Baker Date: Sat, 24 Nov 2018 11:32:33 +1100 Subject: [PATCH 3/4] Moar text --- content/blog/introducing-extended-scalars.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/blog/introducing-extended-scalars.md b/content/blog/introducing-extended-scalars.md index 36b54b3e..d003f2b0 100644 --- a/content/blog/introducing-extended-scalars.md +++ b/content/blog/introducing-extended-scalars.md @@ -21,7 +21,7 @@ The major scalars we have added on day one are * The aforementioned DateTime scalar as well as a Date and Time scalar * A Object scalar or sometimes know as a JSON scalar that allows a map of values to be returned as a scalar value - * Some numeric scalars that constrain the values allowed + * Some numeric scalars that constrain the values allowed such as `PositiveInt` * A Regex scalar that allows a string to fit a regular expression * A Url scalar that produces `java.net.URL` objects at runtime * And finally an aliasing technique that allows you to create more meaningfully named scalar values From 44ed8e6f6c67af162edae59d7f3b0e46ba194d30 Mon Sep 17 00:00:00 2001 From: Brad Baker Date: Mon, 26 Nov 2018 09:18:33 +1100 Subject: [PATCH 4/4] Moar text --- content/blog/introducing-extended-scalars.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/blog/introducing-extended-scalars.md b/content/blog/introducing-extended-scalars.md index d003f2b0..aa1e375e 100644 --- a/content/blog/introducing-extended-scalars.md +++ b/content/blog/introducing-extended-scalars.md @@ -6,16 +6,16 @@ categories = [] date = 2018-11-24T01:00:00+10:00 +++ -One of the most common questions we get in graphql-java land is "can we have a datetime scalar". +One of the most common questions we get in GraphQL Java land is "can we have a datetime scalar". This is not defined by the graphql specification per se so we are reluctant to add it to the core library and then have it turn up later as an officially specified type. -But it really is a badly needed type in your graphql arsenal and hence graphql-java-extended-scalars was born +But it really is a badly needed type in your GraphQL arsenal and hence `graphql-java-extended-scalars` was born https://github.com/graphql-java/graphql-java-extended-scalars -This will be a place where we can add non standard but useful extensions to graphql-java. +This will be a place where we can add non standard but useful extensions to GraphQL Java. The major scalars we have added on day one are