March 2018
Intermediate to advanced
304 pages
6h 59m
English
Represents a primitive value in GraphQL. GraphQL responses take the form of a hierarchical tree; the leaves on these trees are GraphQL scalars.
scalar
In an Absinthe schema, defining a custom scalar type by providing functions to parse input and serialize results:
| | scalar :datetime, name: "DateTime" do |
| | serialize &DateTime.to_iso8601/1 |
| | parse &parse_datetime/1 |
| | end |
A number of built-in scalar types are part of the specification and are predefined for you by Absinthe.
The Boolean scalar type represents true or false.
:boolean
The Float scalar type represents signed double-precision fractional values ...
Read now
Unlock full access