Created
July 25, 2020 23:36
-
-
Save nicholasess/3c97a67c5f65e7a5cd942ce9d6b00b39 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
const User = require(“./models/user”); | |
const user = new User({ | |
name: "Marcelo" | |
}) | |
await user.save() | |
const user = await User.create({ | |
name: "Marcelo" | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment