This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-10
Channels
- # aleph (1)
- # beginners (39)
- # boot (14)
- # cider (2)
- # clara (6)
- # cljs-dev (39)
- # cljsrn (2)
- # clojure (276)
- # clojure-italy (1)
- # clojure-russia (22)
- # clojure-sg (2)
- # clojure-spec (7)
- # clojure-uk (9)
- # clojurescript (47)
- # core-async (1)
- # cursive (5)
- # emacs (1)
- # events (3)
- # leiningen (1)
- # luminus (2)
- # lumo (75)
- # om (14)
- # onyx (1)
- # parinfer (11)
- # pedestal (1)
- # ring-swagger (2)
- # spacemacs (4)
- # untangled (5)
- # yada (29)
It occurred to me that it would be relatively easy to make some query/mutation helpers for the server-side so you could reduce the amount of parser logic there. I’ve added untangled-parser
to the untangled.server
namespace in the new combo lib https://github.com/awkay/untangled (develop branch), along with three macros for adding handlers for queries and mutations. I have not had time to play with them yet, but you might find the extensions interesting. See defquery-entity
, defquery-root
, and defmutation
(for the server). It is also on clojars
basically, you use (untangled-parser)
to make a pre-written Om parser, and use that on the incoming EDN expressions.
(untangled.easy-server/make-untangled-server :parser (untangled.server/untangled-parser))