I’m not able to see(on mongodb) some of the collections I created ,but some of them show. I can’t find any difference between the collections that are showing and those that are not. Neither of the collections have any records inside which confuses as to how one is showing in mongodb but not the other.
Collection that shows up in mongodb
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
export const Universities = new Mongo.Collection('unis');
Universities.allow({
insert: () => false,
update: () => false,
remove: () => false,
})
Universities.deny({
insert: () => true,
update: () => true,
remove: () => true,
})
UniversitySchema = new SimpleSchema({
name: {
type: String,
label: 'University Name',
unique: true
}
});
Universities.attachSchema(UniversitySchema);
Collection that does not shows up in mongodb
import { Mongo } from 'meteor/mongo';
import SimpleSchema from 'simpl-schema';
export const Departments = new Mongo.Collection('departments');
Departments.allow({
insert: () => false,
update: () => false,
remove: () => false
});
Departments.deny({
insert: () => true,
update: () => true,
remove: () => true
});
DepartmentSchema = new SimpleSchema({
department_name:{
type:String,
label:'Department Name',
},
faculty_id:{
type: String,
label: 'Faculty'
}
});
Departments.attachSchema(DepartmentSchema);