Loopback: near filter on object sub-field
问题 I have a Model like this: { name: 'My Favorite Shop', address:{ location: [12.534 /* longitude */ ,41.9221/* latitude */] } } Documents are stored in a mongodb database, and thus I'd like to query them like: //assuming shops to be the name of the containing model app.models.shops.find({ where: { 'address.location': {lat: 13, lng: 40} } }, callback); Problem is this query would not retrieve any result. I guess it's because of the nature of location field, which is nested into address , but I