You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yep. It came from limitation of Datomic, found here:
Lookup refs cannot be used in the body of a query though they can be used as inputs in a parameterized query.
I believe it’s an implementation detail of their query parser which cannot tell the difference between function call, predicate and lookup ref (they all use list/vector form as a distinguisher).
I’ll look into it, it seems like most of the time we can tell the difference though. So I don’t see why DS shouldn’t allow this kind of syntax. Thanks for pointing that out!
Thanks for the link. Seems like they should be able to support that, at least in value position. Two main use-cases were to bridge the lack of :db/ident support, and allow sharing of the same queries between Datomic and Datascript. The latter is moot, and the former is really it's own issue, so closing this.
This query works:
This one returns an empty result:
The text was updated successfully, but these errors were encountered: