node-restful icon indicating copy to clipboard operation
node-restful copied to clipboard

Does it support querying a sub-entity?

Open carneirocarlos opened this issue 9 years ago • 0 comments

I've seen in #84 that it would be possible using it like this:

localhost:8080/api/v1/users?address.state=CA

But I could't make it work.

Example of my object in mongodb:

{ "_id": { "$oid": "55cfd286e5493567d8e82c67" }, "address": { "countryLong": "Brazil", "country": "BR", "postalCode": "80230130", "stateLong": "Paraná", "state": "PR", "city": "CURITIBA", "neighborhood": "REBOUCAS", "streetName": "RUA ROCKEFELLER", "streetNumber": "706", "additionalInformation": null, "desc": "RUA ROCKEFELLER, 706 - REBOUCAS, CURITIBA - PR - 80230130" }, "location": [ -25.4432847, -49.2630943 ] }

carneirocarlos avatar Aug 20 '15 13:08 carneirocarlos