Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6255] ArrowDB query coordinates with or condition

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2019-08-18T10:33:00.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsArrowDB
Labelsn/a
ReporterEmmanuel Francis
AssigneeShak Hossain
Created2019-05-14T11:36:51.000+0000
Updated2019-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" } }

Comments

  1. Rakhi Mitro 2019-05-16

    [~efrancis], Thanks for reporting this. Can you please share a simple test case to reproduce the issue on our end?
  2. Rakhi Mitro 2019-06-16

    [~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. 
  3. Rakhi Mitro 2019-07-25

    Hello, Are you able to get that sorted out?  Please let us know if you need more help with this issue.

JSON Source