This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-05-06
Channels
- # announcements (7)
- # aws (8)
- # babashka (9)
- # babashka-sci-dev (11)
- # beginners (37)
- # calva (50)
- # cider (15)
- # clj-kondo (30)
- # clj-otel (3)
- # cljdoc (16)
- # cljs-dev (26)
- # cljsrn (4)
- # clojure (168)
- # clojure-doc (1)
- # clojure-europe (17)
- # clojure-gamedev (4)
- # clojure-nl (3)
- # clojure-norway (1)
- # clojure-spec (17)
- # clojure-uk (16)
- # clojurescript (27)
- # community-development (3)
- # css (3)
- # cursive (9)
- # datomic (25)
- # emacs (1)
- # events (4)
- # fulcro (2)
- # google-cloud (2)
- # graphql (11)
- # gratitude (9)
- # humbleui (16)
- # hyperfiddle (2)
- # jobs (1)
- # london-clojurians (1)
- # lsp (16)
- # malli (2)
- # off-topic (71)
- # pedestal (4)
- # polylith (9)
- # portal (94)
- # reagent (6)
- # reitit (2)
- # releases (1)
- # remote-jobs (2)
- # sci (9)
- # shadow-cljs (49)
- # spacemacs (8)
- # tools-build (2)
- # tools-deps (39)
- # vim (7)
- # xtdb (6)
We ran into an interesting issue where lacinia returns "com.walmartlabs.lacinia.schema/null"
instead of nil
when tagging nil with a schema-type.
I suspect this is related to the return-type of this field (which is a non-nullable union), it seems like a bug; should I create an issue or am I missing something 👀 ?
Hey there, building my first Clojure library, and it aims to combine Datomic and Lacinia! 😳 Still in draft and all, but happy to read your thoughts! (And also keen to get coding feedback 🙊) https://github.com/nottmey/datomic-lacinia
I like this idea and lots to learn from building it. here’s an alternative that might make it easier for you…
if you used this lib you get the lacinia schema for free https://github.com/hodur-org/hodur-engine
you also get the Datomic schema for free. this addresses the issue of inferring the “entity” shape from the schema, the Hodur schema makes that very clear
you could create a set of Lacinia resolvers to provide CRUD i.e. link the GraphQL and Datomic schemas together to produce a working web service. this can be created and tested locally using the dev-local lib from Datomic Cloud
Hi @U0510KXTU, indeed and I didn’t know about the Hodur approach. Ofc, I can’t replace domain modelling, so the datomic schema needs to be modelled anyway. I will think about it, maybe there is a way to differentiate the approaches. My main motivation is/was keeping datomic as source of truth and not deriving both schemas from a third source, so maybe that’s simply a different way to do it. (I hope it’s still helpful for some people. I will probably try out both in my application stack anyway.) About CRUD, yes that’s the plan, reusing transaction function etc. Thank you for the nice words and the feedback! 😊