Support Topics Documentation Slack YouTube Blog

Backendless is reporting a different object count from the objects returned


(John Vernon) #1

nextPage is null, totalObjects: 4, but the query only returned 2 objects.

Devices table where clause:
user.objectId is not null AND distance(37.56368426285688, -77.44460105895996, last_known_location.latitude, last_known_location.longitude) <= mi(3.5)


  "offset": 0,
  "data": [
    {
      "device_id": "dc81b600270ef982",
      "created": 1502607703000,
      "receive_notifications": true,
      "ownerId": "B033A628-25D0-45B0-FF20-908E57434500",
      "last_known_location": null,
      "manufacturer": "LGE",
      "__meta": "{\"relationRemovalIds\":{},\"selectedProperties\":[\"device_id\",\"created\",\"receive_notifications\",\"ownerId\",\"last_known_location\",\"manufacturer\",\"name\",\"___class\",\"phone_number\",\"model\",\"updated\",\"user\",\"objectId\"],\"relatedObjects\":{}}",
      "name": "lucye_vzw",
      "___class": "Device",
      "phone_number": null,
      "model": "LGE",
      "updated": null,
      "user": null,
      "objectId": "D39D799C-4538-31FD-FFAC-47B23B1D0100"
    },
    {
      "device_id": "dc81b600270ef982",
      "created": 1502607703000,
      "receive_notifications": true,
      "ownerId": "B033A628-25D0-45B0-FF20-908E57434500",
      "last_known_location": null,
      "manufacturer": "LGE",
      "__meta": "{\"relationRemovalIds\":{},\"selectedProperties\":[\"device_id\",\"created\",\"receive_notifications\",\"ownerId\",\"last_known_location\",\"manufacturer\",\"name\",\"___class\",\"phone_number\",\"model\",\"updated\",\"user\",\"objectId\"],\"relatedObjects\":{}}",
      "name": "lucye_vzw",
      "___class": "Device",
      "phone_number": null,
      "model": "LGE",
      "updated": 1503429522000,
      "user": null,
      "objectId": "9B9CA9E6-4FFC-97DA-FFA1-218A91A77800"
    }
  ],
  "nextPage": null,
  "totalObjects": 4
}

(Mark Piller) #2

Hi John,

Please let us know the app id.

Regards,
Mark