Infers query results from filter and SK for the non-index query overload.
Narrowing strategy (respects DynamoDB's AND semantics):
If the filter specifies a top-level type value, narrow by that — then intersect
with $or narrowing if present (since DynamoDB ANDs them).
Otherwise, if top-level filter keys narrow to specific entities, use that — then
intersect with $or narrowing if present.
Otherwise, if $or blocks resolve to specific entities (by type or keys), use that.
Otherwise, if skCondition matches an exact entity name or $beginsWith an entity name, narrow by that.
Otherwise, return the full QueryResults<T> union.
When both top-level (type or keys) and $or narrow to different entity sets,
the intersection is taken. An empty intersection produces never[], reflecting
that no DynamoDB record can satisfy both AND-combined conditions.
Infers query results from filter and SK for the non-index query overload.
Narrowing strategy (respects DynamoDB's AND semantics):
typevalue, narrow by that — then intersect with$ornarrowing if present (since DynamoDB ANDs them).$ornarrowing if present.$orblocks resolve to specific entities (by type or keys), use that.skConditionmatches an exact entity name or$beginsWithan entity name, narrow by that.QueryResults<T>union.When both top-level (type or keys) and
$ornarrow to different entity sets, the intersection is taken. An empty intersection producesnever[], reflecting that no DynamoDB record can satisfy both AND-combined conditions.