MongoDB tricks for the Laravel user

Rather than a standard blog entry, which mostly remains unchanged after creation, this is going to be a living document of MongoDB tricks which may be useful to other developers because they are useful to me. These are all utilized within the mongosh utility.

Basic commands

Here are some basic commands which show the databases, the collections and do basic queries.