Fork me on GitHub
#asami
<
2022-11-10
>
quoll04:11:22

Yes, and it was explicitly enabled so you can

🙏 2
simongray08:11:52

Just fantastic, @quoll! Gonna switch my dumb UUIDs to vectors now.

quoll15:11:21

You’ve probably done it by now, but you can see me using it in one of the tests: https://github.com/quoll/asami/blob/6b8c0fb68ba734f968a3e5906d338cfd6b49e2a6/test/asami/api_test.cljc#L510

quoll15:11:49

Incidentally, you’ll see that queries can have those values inside the query, like on line 533: [:find ?aka :where [?e :db/ident [:maksim 45]] [?e :aka ?a] [?a :a/contains ?aka]]

quoll15:11:37

Triples can always be inserted with structures in them, but generally you’d be doing that kind of thing with entities. For now, if an entity sees a structure then it decomposes it into triples. That’s what you usually want, but not always.

quoll15:11:55

What I’ve opted for right now is that objects will be inserted as whole values if it’s a :db/ident or :id key. Otherwise, they will be deconstructed into triples

quoll15:11:37

When I finally get some of these optional schemas going, then you’ll be able to instruct the transaction what you want to do with those properties on a property-by-property basis

simongray17:11:50

Thank you. Yup, I already did it, no big deal. 🙂

quoll02:11:53

“no big deal” is the best compliment a developer can get! Thank you 💖

❤️ 1