Open AstraLuma opened 1 week ago
Inner queries might become quite messy, like this:
{
'$or': [
{type: Foo, "spam": True},
{type: Bar, "eggs": True},
]
}
We should also support type unions as an or: {type: Foo | Bar}
Database.find_*()
maybe should extend the CouchDB mango syntax withtype
:So if your classes were:
The query
{type: Foo, "spam": "eggs"}
would then be compiled to:(I think the type query should be pulled out, so that it doesn't interact with a user-specified
$or
.)Huly®: BRS-69