An easier way to restore is to use the --nsInclude switch. This allows you to specify a namespace pattern, which could also include an asterisk (*) as a wildcard. Thus, if you wanted to restore all collections of a single database, you could issue this command:
mongorestore --nsInclude sweetscomplete.*
Here is an example of the products collections being restored from the sweetscomplete database:
For documentation on namespace patterns, see https://docs.mongodb.com/manual/reference/limits/#namespaces.
In the last section of this chapter, we have a look at performance monitoring.