Hi,
So I just ran some tests, and everything is responding as it should.
From the client, a save:
local function onResponse(e) core.debug(e) end core.data.save({source="drivers", data = { loopRoute = "Bondi Beach" }},
(core.debug is a handy tool, FYI.)
And I was able to successfully retrieve it with:
local function onResponse(e) core.debug(e) end core.data.get({source="drivers", query={ loopRoute = "Bondi Beach" }}, onResponse)
result: \_id: 5a774aceecf04f5605000001 loopRoute: Bondi Beach
So, what makes this a bit difficult is not knowing your data structure of the return. A few things to try:
Do any of the logs show a message that might provide information on the failed query?
Are you able to recreate the scenario I demonstrated above?
Are you creating the records on the server-side, or via the client-side data module? If you create them server-side, it is best to run your queries server-side using the full Mongo module with the find method.
Is the Mongo server running? You can check this by logging in as the coronium user and then on the command line run:
coronium status
If Mongo is not running, which can happen rarely during updates, then as the coronium user reboot to see if it will pop back up:
sudo reboot -h
After the reboot, log back in and check the status again.
If those items fail to resolve, or point to any possible reason for the issue, then the next step is to move over to my support email (which I will send to you through a DM), and I can look at the server directly. This generally involves temporarily changing the coronium user password. (I do this often for users, and I’m fully qualified ).
Let me know.
-dev