typicaljoe / taffydb

TaffyDB - an open source JavaScript Database for your browser
http://taffydb.com
MIT License
2.21k stars 286 forks source link

Query with both and + or filters does not work #167

Open meliorist opened 4 years ago

meliorist commented 4 years ago

I have been trying to make a combination of and + or filters work, as in the example provided in the writing queries page:

{role:"Admin"},[{status:"Active"},{status:"Pending",manager_review:true}]

In this format to be exact:

{role:"Admin"},[{originState:"AZ"},{destinationState:"AZ"}]

It does not work for me. I don't believe this is valid json. When you attempt to parse this, the second element is dropped. Note that this works:

[{originState:"AZ"},{destinationState:"AZ"}]