Closed benatkin closed 14 years ago
Pulled the new version, and it does indeed fix this issue!
> var rql = require('rql/js-array')
> var docs = [{'html':{'head':{'title':'Hello'}}}, {'html':{'head':{'title':'Ben'}}}, {'name': 'Ben', 'age': 28}]
> rql.query('html.head.title=Hello', {}, docs)
[ { html: { head: [Object] } } ]
Have it fixed your first example?!
Yes, it did. :)
> rql.query("foo.cat=3", {}, [{"path":[1,2,3]},{"path":[9,3,7]}])
[]
Thanks!
I saw that nested properties are supported in the language and in js-array. Neat! This is probably not the desired behavior when it can't go deep enough, though: