Created
August 11, 2019 12:54
-
-
Save acomito/45f9032341c90ec13883712fa2489fde to your computer and use it in GitHub Desktop.
collections/Users/model.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mongo from 'modules/mongodb'; | |
const EmailModel = new Mongo.Schema({ | |
address: String | |
}); | |
const schema = new Mongo.Schema({ | |
id: String, | |
emails: [EmailModel] | |
}); | |
const Users = Mongo.model('Users', schema); | |
export default Users; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment