September 2018
Beginner to intermediate
192 pages
4h 37m
English
Often, you simply want to get status information on MongoDB, in which case the database is irrelevant. In this example, we use the --eval flag to run the command db.serverStatus():

In other cases, you might want to run periodic database queries from a cron job. Here is an example where we check for customers in the sweetscomplete database whose balance is 0:

Read now
Unlock full access