Fork me on GitHub
#graphql
<
2018-01-06
>
timgilbert16:01:06

Say, anyone got an open-source implementation of a scalar resolver for java.util.Date objects?

timgilbert20:01:48

Thanks @hlship, will look at that

timgilbert20:01:31

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()

timgilbert20:01:11

For Clojure the scalar would be better, for ios/web clients it might be nice to just have the methods