The documentation only mentions the syntax without a src-var
:
pull-expr = ['pull' variable pattern]
but found that this syntax also works:
pull-expr = ['pull' src-var variable pattern]
I have a self-contained code example here, which demonstrates a use-case, where an entity is split between 2 Datomic databases, for privacy reasons:
https://forum.datomic.com/t/pull-db-entity-pattern-is-undocumented/2299
Is this variant of the pull-expr
in Datalog queries are not supported officially?
Should I use it in production or does it have some undefined behaviour, compared to its binary arity variant?
Or the documentation is just incomplete?