Open neonstalwart opened 10 years ago
What about slash separated? That should be converted to an array.
oh right... i had forgotten slashes was actually what i had expected should work based on reading the parser code and tests. nothing but an array of the segments works - i tried .
, ,
, /
.
It says return "(" + slashed.replace(/\//g, ",") + ")";
so I think (user,id)
should be parsed out as well. But it isn't clear that a query string is treated differently then a constructed object.
parsing isn't used when constructing via Query
IMO this is an inconsistency that needs to be addressed. I think property names should be treated the same when constructing an object. So q.eq('this/is/a/path','value')
should be parsed out. I don't see a reason not to.
At least it should be documented........
my first thought was to try a dot-separated path
but the only way i've found to work is to use an array of path segments
should the dot-separated path work or is the array the right way?