Closed flyingmachine closed 6 years ago
Just saw this. The problem is deciding which takes precedence: the "omit" or the spec-gen. Perhaps this should be a query compile error since intent is ambiguous?
I think whatever you pass to :spec-gen
in the query should take precedence. :refs {:owner-id ::sm/omit}
applies to building the ent db, and visiting functions' default behavior should respect whatever's in the ent db. The query is meant to specify deviations from the default behavior, so whatever's in the :spec-gen
part of the query should take precedence over whatever has resulted from default behavior up to that point.
Hmmm I must have been mistaken about this, I can't repro it
:x should be present and nil. instead it's absent.
Example query: