constmySchema=newSchema({ username: {type: String });// GettermySchema.path('name'); // returns { type: String }// SettermySchema.path('email', { type: String, validate:'isEmail' });// You can access the schema from a Modelconst User =gstore.model('User');// add new path to the User SchemaUser.schema.path('age', { type: Number });