Fork me on GitHub
#datomic
<
2021-06-23
>
babardo09:06:36

👋 Using datomic cloud, I set an identity on a tuple composed of 2 attributes:

[:resource/a+b :tuple   :one :unique :identity :attrs [:resource/a :resource/b]]
And I wonder if it's possible to activate the identity only if both of the attributes are present in the entity. (and not only one of them like it seems to be)

favila12:06:15

It is not possible. A composite tuple is asserted if any component attr is asserted and there’s no way to only assert the composite if all of them are asserted.

favila12:06:01

(That would be a really nice feature btw.)

babardo13:06:28

Ok no 🪄 so! Thanks for the answer 🙏

Fabim19:06:11

Is there a way to expose resources in subfolder of `public` so the browser can fetch them when getting the `index.html`  in a pedestal ion service? I set :allowed-origins which enables to load js and css in the public folder. The images, js and css in public/[subfolder]/ produce 403. I’m using an APIGW connected to a lambda that calls the ring routing as described in https://github.com/pedestal/pedestal-ions-sample