.create()
Add a new document to a database
create(data)
User.create({ _id: 1, username: "lennart" }).save()
// {
// _id: 1,
// username: "lennart"
// }
Last updated
Was this helpful?
Add a new document to a database
User.create({ _id: 1, username: "lennart" }).save()
// {
// _id: 1,
// username: "lennart"
// }
Last updated
Was this helpful?