To Create Collection in MongoDB

db.createCollection(‘collection_name‘);

db.createCollection('student');
{ "ok" : 1 }
db.createCollection('class');
 { "ok" : 1 }
show collections;
 class
 student