geofirex icon indicating copy to clipboard operation
geofirex copied to clipboard

Adding support to 'within' query for nested fields

Open rjburdish opened this issue 6 years ago • 4 comments

This resolves #25. When querying an object structured as the below, with nested location attributes, the query will fail. After this change, the structure below is now supported as long as the correct options are passed in.

{"stores": [{
  "name": "Bob's",
   "phoneNumber": 2345678987,
    "location": {
        "street": "Abbey rd",
        "city": "NY",
        "geodata": {
              "geopoint" : {
                   "longitude": 1234.45,
                   "latitude": 1234.45
               },
               "geohash": "dxguy2es3"
        }
    }
}]
}

rjburdish avatar Jun 10 '19 00:06 rjburdish

@rjburdish Hi, is there any problem in this pull request ? Why this is not merged in project yet?

@codediodeio

Facing the same problem for nested fields. Please merge :)

catrawalkar avatar Jan 09 '20 06:01 catrawalkar

Hello, can this be merged please ? I'm facing the same issue @codediodeio

tarounen avatar Jul 20 '20 11:07 tarounen

@rjburdish your changes contains a conflict. Could you please resolve the conflict?

@codediodeio Would you please review the changes - these feature would be very nice.

IgoPeg avatar Nov 01 '20 22:11 IgoPeg

Is there any issue with PR apart from current merge conflicts ? I think it will be a good feature to support geo-point under nested object. Adding an example in readme will be also helpful

BlackRider97 avatar Jul 24 '21 10:07 BlackRider97