[AC-6255] ArrowDB query coordinates with or condition
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2019-08-18T10:33:00.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | ArrowDB |
Labels | n/a |
Reporter | Emmanuel Francis |
Assignee | Shak Hossain |
Created | 2019-05-14T11:36:51.000+0000 |
Updated | 2019-08-18T10:33:00.000+0000 |
Description
I am trying to query users for coordinates with or clause. Below is the example:
URL: https://api.cloud.appcelerator.com/v1/users/query.json?key=key&pretty_json=true&response_json_depth=2
Request: where:{"$or":[{"coordinates":{"$nearSphere":[79.0521694,21.1310236],"$maxDistance":0.0156}}, {"coordinates":{"$nearSphere":[78.0521694,21.1310236],"$maxDistance":0.0156}}]}
count:true
I am getting below error.
Response: {
"meta": {
"code": 400,
"status": "fail",
"message": "$and/$or/$nor must be a nonempty array",
"method_name": "queryUsers"
}
}
[~efrancis], Thanks for reporting this. Can you please share a simple test case to reproduce the issue on our end?
[~efrancis], We haven't heard back from you since our last response. I am just following up to check the status of this case and if you need further help on it.
Hello, Are you able to get that sorted out? Please let us know if you need more help with this issue.