Fork me on GitHub
#datomic
<
2016-09-06
>
tomtau08:09:36

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]}

tomtau08:09:01

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:

yonatanel12:09:13

@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.

jaret13:09:43

@drankard I just saw your google group question. What version of Datomic are you using?

drankard13:09:50

@jaret the transactor jar is: datomic-transactor-pro-0.9.5344.jar

drankard13:09:08

it’s like the (aws) ClientConfiguration does not get the proxy settings

jaret13:09:29

@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?

jaret13:09:09

I am going to update the ggroup discussion if that works for you

anders13:09:43

Anyone from Cognitect around? The AWS Datomic AMIs (ami-e0a4a9fd and ami-e2a4a9ff) for eu-central-1 seems to be missing

marshall14:09:48

Lookin into it

marshall14:09:04

@anders I’ve pushed the AMIs. They might take a few to show up, but they should be available soon

anders14:09:28

great, thanks

marshall14:09:37

no problem. Thanks for catching it

kenny22:09:34

Is there an easy way to tell when a differential backup was last updated?