Implementation functions for stillsuit scalar transformers.
The intent here is to provide transformers for all of datomic's primitive values,
though we ignore some oddball types like :db.type/uri
.
Implementation functions for stillsuit scalar transformers. The intent here is to provide transformers for all of datomic's primitive values, though we ignore some oddball types like `:db.type/uri`.
(parse-epoch-millisecs msec-str)
Parser converting number of milliseconds since the UTC epoch (as a string) to a
java.util.Date
value.
Parser converting number of milliseconds since the UTC epoch (as a string) to a `java.util.Date` value.
(parse-iso8601 date-str)
Parser which will parse dates in ISO-8601 format, convert them to UTC time, and return
a java.util.Date
result.
Parser which will parse dates in ISO-8601 format, convert them to UTC time, and return a `java.util.Date` result.
(serialize-epoch-millisecs date)
Serializer representing a java.util.Date
object as a string representing the number
of milliseconds since the UTC epoch.
Serializer representing a `java.util.Date` object as a string representing the number of milliseconds since the UTC epoch.
(serialize-iso8601 date)
Serializer which will serialize dates as ISO-8601 strings in the UTC timezone.
Serializer which will serialize dates as ISO-8601 strings in the UTC timezone.
Basic convert-to-string serializer, which just relies on good old (str)
Basic convert-to-string serializer, which just relies on good old `(str)`
(transformer-map base-map config)
Given a base resolver map used attach scalar transformers to a lacinia schema, attach the transformers for datomic primitive types.
Given a base resolver map used attach scalar transformers to a lacinia schema, attach the transformers for datomic primitive types.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close