Skip to content

Instantly share code, notes, and snippets.

@nicholasess
Created July 25, 2020 23:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicholasess/3c97a67c5f65e7a5cd942ce9d6b00b39 to your computer and use it in GitHub Desktop.
Save nicholasess/3c97a67c5f65e7a5cd942ce9d6b00b39 to your computer and use it in GitHub Desktop.
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