A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
I'd like use this schema as user and login or extend form users.I read documentation i don't understand how extends from users. how i can make it?
Dipendenti = new Mongo.Collection('dipendenti');
DipendentiSchema = new SimpleSchema({
nome: {
type: String
},
cognome:{
type: String
},
codiceFiscale:{
type: String
},
I'd like use this schema as user and login or extend form users.I read documentation i don't understand how extends from users. how i can make it? Dipendenti = new Mongo.Collection('dipendenti'); DipendentiSchema = new SimpleSchema({ nome: { type: String }, cognome:{ type: String }, codiceFiscale:{ type: String },
});
Dipendenti.attachSchema( DipendentiSchema );