Substitute line 25 of index.js with if (value && typeof value === 'object' && !(value instanceof RegExp) && !(value instanceof Date)) {. This appears to fix the Error: unsupported operator: undefined error.
After this, I hit a dead end. A map reduce takes what appears to be a valid criteria and completely strips it out, and I can't figure out what the reduce is supposed to be doing.
Date queries are not working in mongo-rql.
I can get the tests "closer" to passing by implementing the following two changes, but then I quickly get into code I'm not currently understanding...
if (value && typeof value === 'object' && !(value instanceof RegExp) && !(value instanceof Date)) {
. This appears to fix theError: unsupported operator: undefined
error.After this, I hit a dead end. A map reduce takes what appears to be a valid criteria and completely strips it out, and I can't figure out what the reduce is supposed to be doing.