Fork me on GitHub
#pathom
<
2019-08-02
>
souenzzo13:08:50

eql specify things like [(:foo/bar {:default "---"})] but datomic expect [(:foo/bar :default "---")] There is some standard solution to this? I'm developing a custom ast->datomic-selector ATM

wilkerlucio16:08:05

@souenzzo is [(:foo/bar :default "---")] some sort of new syntax? as far as I remember datomic doens't have params in any way, they do have something called attributes with options (https://docs.datomic.com/on-prem/pull.html#attribute-with-options) but the syntax is [:foo/bar :default "---"] (no parentesis), is this what you mean?

wilkerlucio16:08:25

oh. reading again I'm seeing that (weird, I though that was vector only, but ok)

wilkerlucio16:08:30

no standard way to do it in terms of pathom or eql

👍 1
souenzzo16:08:44

interested in ast->datomic-selector inside eql ? I think that it could be a external lib

wilkerlucio17:08:06

I think its not in the context, eql is supposed to be very clean and raw, this is more an extension/integration feature, better to have it as a separated thing

wilkerlucio17:08:28

or maybe some other package, eql-tools? not sure about it, what you think?

👍 1
souenzzo17:08:33

i think that eql-tools or eql-datomic is a better idea once it will keep eql "core" smaller