-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add supports for $and, $not, and $all for complex Mongo queries #50
Comments
I pushed what we worked on into the What I think needs to be done:
new ValuesAnd([
new KeysAnd({tags: new is.All(['sbux']) }),
new KeysAnd({tags: new ValuesNot( new is.All(['dfw']) })
]).isMember({
tags: ["sbux"]
}) //-> true
var query = {
filter: {
$and: [
{tags: {$all: ['sbux']}},
{tags: {$not: {$all: ['dfw']}}}
]
}
};
var converter = makeBasicQueryConvert(EmptySchema);
var basicQuery = converter.hydrate(query);
assert(basicQuery.filter instanceof ValuesAnd);
|
can-fixture uses the memory store, but its super set is the universal set. Therefore there isn't a need to check if a query is a subset. Doing so causes errors when comparisons are made between unknown types. This is part of canjs/can-query-logic#50
can-fixture uses the memory store, but its super set is the universal set. Therefore there isn't a need to check if a query is a subset. Doing so causes errors when comparisons are made between unknown types. This is part of canjs/can-query-logic#50
No description provided.
The text was updated successfully, but these errors were encountered: