This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-06
Channels
- # admin-announcements (10)
- # alda (78)
- # arachne (33)
- # bangalore-clj (2)
- # beginners (11)
- # boot (70)
- # chestnut (8)
- # cljsjs (5)
- # cljsrn (4)
- # clojure (212)
- # clojure-art (1)
- # clojure-berlin (1)
- # clojure-brasil (27)
- # clojure-canada (6)
- # clojure-colombia (12)
- # clojure-dev (6)
- # clojure-greece (29)
- # clojure-hk (2)
- # clojure-italy (7)
- # clojure-russia (51)
- # clojure-spec (12)
- # clojure-uk (18)
- # clojurescript (115)
- # clojurex (8)
- # component (1)
- # crypto (41)
- # css (5)
- # cursive (31)
- # datomic (17)
- # defnpodcast (7)
- # emacs (9)
- # flambo (1)
- # funcool (4)
- # juxt (29)
- # off-topic (1)
- # om (122)
- # onyx (12)
- # pedestal (1)
- # planck (10)
- # portland-or (1)
- # re-frame (30)
- # reagent (4)
- # rum (3)
- # slack-help (2)
- # specter (20)
- # sql (3)
in the REST tx-data, what is the syntax for adding something to existing entities? I've got this:
[
{:db/id 17592186045432
:foo/refAttr #db/id[:db.part/user]}
{:db/id #db/id[:db.part/user] :bar/something true :bar/baz "blabla"}
]
and get an error... if my tx-data is only [{:db/id #db/id[:db.part/user] :bar/something true :bar/baz "blabla"}]
, it works fine, so i suppose the problem is in {:db/id 17592186045432
:foo/refAttr #db/id[:db.part/user]}
This one works:
[
{:db/id 17592186045432
:foo/refAttr #db/id[:db.part/user -1]}
{:db/id #db/id[:db.part/user -1] :bar/something true :bar/baz "blabla"}
]
:thinking_face:@tomtau #db/id[:db.part/user] represents a new ID on every appearance. In order to correlate two entities you need to use the same #db/id[:db.part/user <negative-id>] to represent the same entity inside a transaction.
@drankard I just saw your google group question. What version of Datomic are you using?
@drankard 0.9.5385 added support for AWS SDK 1.11.6 I think there is a deps problem on your version. Could you try on 0.9.5385 or a more recent version?
Anyone from Cognitect around? The AWS Datomic AMIs (ami-e0a4a9fd and ami-e2a4a9ff) for eu-central-1 seems to be missing