Helpful Commands

Natural Sort Order

db.getCollection("datafile").find({}).sort({$natural:-1});

Get clients by a where clause, locally on the EC2 instance. The data after the where clause is urlencoded. So the where value is “{"attributes.ClientPartyID" : "96"}”

curl -k -X GET https://127.0.0.1:1338/client?where=%7B%22attributes.ClientPartyID%22%20%3A%20%2296%22%7D