Meteor-Community-Packages / meteor-collection2

A Meteor package that extends Mongo.Collection to provide support for specifying a schema and then validating against that schema when inserting and updating.
https://packosphere.com/aldeed/collection2
MIT License
1.02k stars 108 forks source link

create user with schema #351

Closed hackpiro closed 8 years ago

hackpiro commented 8 years ago

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 },

telefono:{
    type: String
},
indirizzo:{
    type: String
}

});

Dipendenti.attachSchema( DipendentiSchema );