500 Error running mc:getObjects() without a query table

Client side code:

mc:getObjects("Players")

From the server logs:

2016/04/03 13:03:04 [error] 965#0: \*5740 lua entry thread aborted: runtime error: /usr/local/coronium/lib/mod\_object.lua:76: bad argument #1 to 'decode' (string expected, got table) stack traceback: coroutine 0: &nbsp;&nbsp;&nbsp;&nbsp;[C]: in function 'decode' &nbsp;&nbsp;&nbsp;&nbsp;/usr/local/coronium/lib/mod\_object.lua:76: in function \</usr/local/coronium/lib/mod\_object.lua:1\>, client: 72.80.80.202, server: , request: "GET /1/objects/Players? HTTP/1.1", host: "xxx.xxx.xxx.xxx"

The error seems to go away if I supply a non-empty query table, but I want to get back all results. 

Try to give querytable for fields (like objectId) which always exists.  

local queryTable = {

where = { objectId = { ["$exists"] = true }  }

  };

This way you will get all the documents within the collection.

Hi,

That is how the call operates. If you want all the records (or what Mongo will give) then pass the empty table.

http://docs.coronium.io/en/latest/client/DataObjects/#getobjects

Cheers.

Try to give querytable for fields (like objectId) which always exists.  

local queryTable = {

where = { objectId = { ["$exists"] = true }  }

  };

This way you will get all the documents within the collection.

Hi,

That is how the call operates. If you want all the records (or what Mongo will give) then pass the empty table.

http://docs.coronium.io/en/latest/client/DataObjects/#getobjects

Cheers.