Created
November 12, 2019 18:27
-
-
Save bchiang7/88bc2f81a32cd00b65a2325579cc65b9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Create a new User model instance | |
const harryPotter = new User({ | |
id: 'abc123', | |
email: '[email protected]', | |
displayName: 'The Boy Who Lived', | |
... | |
}); | |
// Add it as a document in the `users` collection in Firestore | |
harryPotter.create(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment