This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-03
Channels
- # beginners (446)
- # boot (16)
- # cljs-dev (2)
- # cljsrn (30)
- # clojars (2)
- # clojure (143)
- # clojure-finland (1)
- # clojure-greece (1)
- # clojure-nl (1)
- # clojure-russia (2)
- # clojure-spec (20)
- # clojure-uk (7)
- # clojurescript (167)
- # code-reviews (1)
- # community-development (12)
- # core-async (27)
- # cursive (3)
- # data-science (9)
- # datascript (2)
- # emacs (1)
- # graphql (46)
- # immutant (5)
- # jobs (2)
- # leiningen (1)
- # luminus (1)
- # lumo (76)
- # off-topic (79)
- # perun (2)
- # protorepl (33)
- # re-frame (21)
- # reagent (62)
- # ring-swagger (1)
- # rum (18)
- # spacemacs (6)
- # specter (4)
- # test-check (4)
- # unrepl (9)
- # untangled (2)
- # vim (4)
- # yada (1)
I'm having difficulty implementing a scalar in lacinia. I'm cannibalizing the leaderboard app for testing and I've added this to my schema file on the same level as :queries
however, all i get back on the client is whatever my resolver sends. so resolve device sends "red" and i get red for this field even though my scalar serializer is called
in the docs, i assumed that was just to resolve it with a today date to show it being parsed as a scalar but I can try that. My :scalar-date-serializer is getting called which is odd
I know in libraries in other languages (e.g. elixir using absinthe), enforcing types on nested data has never really worked
adding a resolver for the date field doesn't help. I tried to add the conform stuff but as soon as i depend on clojure 1.9 it breaks the app unfortunately
I'm trying to convert an apollo project to clojure so i can learn clojure and this is the last bit before I can start converting it all
when i do (clojure.pprint/pprint (keys (ns-publics 'com.walmartlabs.lacinia.schema)))
there is no as-conformer method
it might break some other parts of the app but I wouldn't trust the docs to be correct for anything but the current version
it is much niecer than the pedestal example provided for testing since it recompiles everything each request
and i have no clue the differences between pedestal and ring so for now it is just whatever is easiest