node-restful
node-restful copied to clipboard
Does it support querying a sub-entity?
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 ] }