Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gustavobite/9a49bc9ada200ee21f1b00b342f423b8 to your computer and use it in GitHub Desktop.
Save gustavobite/9a49bc9ada200ee21f1b00b342f423b8 to your computer and use it in GitHub Desktop.
Querys MongoDB
--- Find all schedules between two dates and id
db.getCollection('schedules').find({deviceId:'5CCF7FD6F728', time: {
$gte: ISODate("2017-08-24 18:14:14.000Z"),
$lt: ISODate("2017-08-24 18:14:14.000Z")
}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment