You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td>A RFC-3339 compliant date scalar that accepts string values like <code>1996-12-19</code> and produces <code>java.time.LocalDate</code> objects at runtime.</td>
145
+
</tr>
146
+
<tr>
147
+
<td><code>Time</code></td>
148
+
<td><pre lang="graphql">
149
+
scalar Time
150
+
@specifiedBy(url:
151
+
"https://tools.ietf.org/html/rfc3339"
152
+
)
153
+
</pre></td>
154
+
<td>A RFC-3339 compliant time scalar that accepts string values like <code>16:39:57-08:00</code> and produces <code>java.time.OffsetTime</code> objects at runtime.</td>
155
+
</tr>
156
+
<tr>
157
+
<td><code>LocalTime</code></td>
158
+
<td><pre lang="graphql">
159
+
scalar LocalTime
160
+
</pre></td>
161
+
<td>24-hour clock time string in the format <code>hh:mm:ss.sss</code> or <code>hh:mm:ss</code> if partial seconds is zero and produces <code>java.time.LocalTime</code> objects at runtime.</td>
|`UUID`| <prelang="graphql">scalar UUID @specifiedBy(url: "https://tools.ietf.org/html/rfc4122")</pre> | A universally unique identifier scalar that accepts uuid values like `2423f0a0-3b81-4115-a189-18df8b35e8fc` and produces `java.util.UUID` instances at runtime. |
192
+
<table>
193
+
<tr>
194
+
<td>Scalar Name</td>
195
+
<td>Scalar Specification</td>
196
+
<td>Description</td>
197
+
</tr>
198
+
<tr>
199
+
<td><code>UUID</code></td>
200
+
<td><pre lang="graphql">
201
+
scalar UUID
202
+
@specifiedBy(url:
203
+
"https://tools.ietf.org/html/rfc4122"
204
+
)
205
+
</pre></td>
206
+
<td>A universally unique identifier scalar that accepts uuid values like `2423f0a0-3b81-4115-a189-18df8b35e8fc` and produces `java.util.UUID` instances at runtime.</td>
|`Locale`| <prelang="graphql">scalar Locale @specifiedBy(url: "https://tools.ietf.org/html/bcp47")</pre> | The Locale scalar handles [IETF BCP 47](https://tools.ietf.org/html/bcp47) language tags via the JDK method [Locale.forLanguageTag](<https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html#forLanguageTag(java.lang.String)>)|
331
+
<table>
332
+
<tr>
333
+
<td>Scalar Name</td>
334
+
<td>Scalar Specification</td>
335
+
<td>Description</td>
336
+
</tr>
337
+
<tr>
338
+
<td><code>Locale</code></td>
339
+
<td><pre lang="graphql">
340
+
scalar Locale
341
+
@specifiedBy(url:
342
+
"https://tools.ietf.org/html/bcp47"
343
+
)
344
+
</pre></td>
345
+
<td>The Locale scalar handles <a href="https://tools.ietf.org/html/bcp47">IETF BCP47</a> language tags via the JDK method <a href="https://docs.oracle.com/javase/7/docs/api/java/util/Locale.html#forLanguageTag(java.lang.String)">Locale.forLanguageTag</a>.</td>
346
+
</tr>
347
+
</table>
206
348
207
349
```graphql
208
350
type Customer {
@@ -228,9 +370,23 @@ query {
228
370
229
371
## Country Code Scalar
230
372
231
-
| Scalar Name | Scalar Specification | Description |
|`CountryCode`| <prelang="graphql">scalar CountryCode</pre> | The CountryCode scalar type as defined by [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2). |
|`Currency`| <prelang="graphql">scalar Currency</pre> | A field whose value is an [ISO-4217](https://en.wikipedia.org/wiki/ISO_4217) currency. |
415
+
<table>
416
+
<tr>
417
+
<td>Scalar Name</td>
418
+
<td>Scalar Specification</td>
419
+
<td>Description</td>
420
+
</tr>
421
+
<tr>
422
+
<td><code>Currency</code></td>
423
+
<td><pre lang="graphql">
424
+
scalar Currency
425
+
@specifiedBy(url:
426
+
"https://en.wikipedia.org/wiki/ISO_4217"
427
+
)
428
+
</pre></td>
429
+
<td>A field whose value is an <a href="https://en.wikipedia.org/wiki/ISO_4217">ISO-4217</a> currency.</td>
430
+
</tr>
431
+
</table>
262
432
263
433
An example declaration in SDL might be:
264
434
@@ -293,28 +463,36 @@ query {
293
463
<td>Description</td>
294
464
</tr>
295
465
<tr>
296
-
<td><pre>Url</pre></td>
466
+
<td><code>Url</code></td>
297
467
<td><pre lang="graphql">
298
468
scalar URL
299
469
@specifiedBy(url:
300
470
"https://www.w3.org/Addressing/URL/url-spec.txt"
301
471
)
302
-
</pre>
303
-
</td>
472
+
</pre></td>
304
473
<td>An url scalar that accepts string values like `https://www.w3.org/Addressing/URL/url-spec.txt` and produces `java.net.URL` objects at runtime.</td>
305
474
</tr>
306
475
</table>
307
476
308
-
| Scalar Name | Scalar Specification | Description |
|`Url`| <prelang="graphql">scalar URL @specifiedBy(url: "https://www.w3.org/Addressing/URL/url-spec.txt")</pre> | An url scalar that accepts string values like `https://www.w3.org/Addressing/URL/url-spec.txt` and produces `java.net.URL` objects at runtime. |
311
-
312
477
## Object / JSON Scalars
313
478
314
-
| Scalar Name | Scalar Specification | Description |
0 commit comments