db-local
  • Introduction
  • Getting Started
  • Schema
  • Methods
    • .find()
      • References
      • Filters
    • .create()
    • .update()
    • .remove()
Powered by GitBook
On this page

Was this helpful?

  1. Methods

.create()

Add a new document to a database

create(data)

User.create({ _id: 1, username: "lennart" }).save()
// {
//   _id: 1, 
//   username: "lennart"
// }

PreviousFiltersNext.update()

Last updated 3 years ago

Was this helpful?