This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-06
Channels
- # architecture (17)
- # beginners (118)
- # boot (22)
- # cider (9)
- # clara (38)
- # cljs-dev (4)
- # clojure (213)
- # clojure-austin (4)
- # clojure-greece (1)
- # clojure-italy (4)
- # clojure-russia (5)
- # clojure-spec (7)
- # clojure-uk (5)
- # clojurescript (3)
- # cursive (21)
- # datascript (3)
- # datomic (31)
- # duct (12)
- # emacs (9)
- # graphql (5)
- # gsoc (1)
- # hoplon (9)
- # leiningen (2)
- # off-topic (37)
- # om (2)
- # onyx (2)
- # parinfer (5)
- # perun (4)
- # reagent (2)
- # spacemacs (1)
- # specter (25)
Say, anyone got an open-source implementation of a scalar resolver for java.util.Date
objects?
Most of what you need is here: http://lacinia.readthedocs.io/en/latest/custom-scalars.html
Thanks @hlship, will look at that
About dates, I’m not sure whether a better API would be just to serialize them with a scalar transformer as above, or to provide more of an OO type interface where they would expose methods like formatAs("yyy-MM-dd")
and getEpoch()
For Clojure the scalar would be better, for ios/web clients it might be nice to just have the methods