Commit 040b3e9
Add spec for
* Add spec for `Long` custom scalar type
The `Long` data type is commonly used in many applications because
the largest value that can be held in an `Int` value is `2^31-1`.
See: graphql/graphql-spec#73
* Update scalars/contributed/jakobmerrild/long.md
Co-authored-by: Martin Bonnin <martin@mbonnin.net>
* Update scalars/contributed/jakobmerrild/long.md
Co-authored-by: Martin Bonnin <martin@mbonnin.net>
* Update wording of Long spec
This makes the wording more consistent and removes all references
to JSON.
* Update Long spec to not allow strings for input
There's a separate suggestion to update the guide lines to not
mention being liberal in what is accepted for inputs.
See: #40
* Rewrite Long spec in terms of String encoding
Ultimately, not every language can easily parse arbitrarily large
JSON numbers. As such we are better off using a string serialization
scheme which then allows the adaptors to use whichever methods they
see fit to turn the string into a different representation after
coercion, e.g. Long or BigInt
* Update date of spec
The recent changes represent a significant departure from the original
spec, so we update the date :)
* Fix formatting and spelling
---------
Co-authored-by: Martin Bonnin <martin@mbonnin.net>Long custom scalar type (#26)1 parent 8b3cead commit 040b3e9
1 file changed
+72
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
0 commit comments