copleykj / meteor-typed-model

Create typed and validated models for you MeteorJS app
MIT License
3 stars 0 forks source link

how to extends meteor.users? #1

Open welkinwong opened 2 months ago

welkinwong commented 2 months ago

thanks for your great package 👍👍👍

when I use meteor-collection2, I use addachSchema

like:

const UserCollection = Meteor.users;

const usersSchema = new SimpleSchema({
  ...
  myKey: {
    type: String,
    defaultValue: 'a'
  }
  ...
});

UserCollection.attachSchema(usersSchema);

export default UserCollection;

how to extend user by meteor-typed-model?

copleykj commented 2 months ago

Unfortunately this isn't possible currently. It's definitely on my list of additions though, so hopefully soon.