This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-27
Channels
- # beginners (24)
- # boot (10)
- # cider (6)
- # cljs-dev (8)
- # cljsrn (9)
- # clojure (46)
- # clojure-brasil (7)
- # clojure-dev (7)
- # clojure-germany (1)
- # clojure-uk (5)
- # clojurescript (22)
- # cursive (2)
- # datomic (19)
- # defnpodcast (2)
- # dirac (94)
- # emacs (4)
- # fulcro (20)
- # graphql (2)
- # hoplon (2)
- # lumo (9)
- # off-topic (2)
- # om (1)
- # re-frame (8)
- # shadow-cljs (66)
- # spacemacs (5)
- # sql (1)
- # test-check (3)
I'm trying to create a tempid on client, and use it to make relations between queries and mutations
(let [id (om/tempid)]
`[(create-user {:db/id ~id :user/username "me"})
{(:app/user {:db/id ~id}) '[:user/username]}])
I'm parsing on the server with (edn/read-string {:readers {'om/id first}} s)
, so #om/id["foo"]
turns into "foo"
, which are valid datomic tempids.
From transact I can get :tempids {"foo" 123213231}
, but I cant find how to access the result from transaction on the read
multi-method