Fork me on GitHub
#xtdb
<
2020-10-21
>
victorb09:10:55

Is there any way of "rewriting" the results of eql/project joins? For something like (eql/project ?website [* {:domain/_website-id [:domain/hostname]}]) I'd like the key to be something different than :domain/_website_id

jarohen09:10:57

Not within EQL itself, as far as I know, I'm afraid - although it has custom parameters, so we could consider a rename as a custom parameter

victorb09:10:46

alright, good to know, would have to do rewrites in application code. Not the end of the world, but would be a nice features to have

souenzzo12:10:59

In pathom, we can use something like that:

[{(:domain/_website-id {:pathom/as :website/domain})
  [:domain/hostname]}]

jarohen13:10:17

Right - yeah, that seems straightforward enough then 🙂 I'm working on our EQL support at the moment, as it happens, will see what's involved

parrot 3
jarohen13:10:15

turns out implementation was straightforward too, will include it in my current PR 🙂

victorb13:10:41

😮 That's great to hear, unexpected but welcome none the less!