Check out example codes for "how to create database in mongo db command". It will help you in understanding the concepts better.

Code Example 1

use DATABASE_NAME

Learn ReactJs, React Native from akashmittal.com