Skip to content

Instantly share code, notes, and snippets.

@bleathem
Created May 21, 2015 19:50
Show Gist options
  • Save bleathem/c68e1efb865eb4f87b95 to your computer and use it in GitHub Desktop.
Save bleathem/c68e1efb865eb4f87b95 to your computer and use it in GitHub Desktop.
> db.scans.find({timestamp: {$gt: date}, beaconId: '229', retransmit:false}, {_id: 0, created:0, __v: 0}).sort({timestamp:1})
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:40:32.039Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:40:37.025Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:42:42.025Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:42:47.023Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:43:12.035Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:43:17.023Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:44:27.020Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:44:32.027Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:47:32.031Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:47:37.022Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-out", "timestamp" : ISODate("2015-05-21T19:48:57.028Z"), "retransmit" : false }
{ "beaconId" : "229", "locationCode" : "Room202", "type" : "check-in", "timestamp" : ISODate("2015-05-21T19:49:02.033Z"), "retransmit" : false }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment