Skip to content

Instantly share code, notes, and snippets.

@ayatmaulana
Created June 17, 2019 01:29
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 ayatmaulana/d980af5d4a49cba2fe0f678ff001c374 to your computer and use it in GitHub Desktop.
Save ayatmaulana/d980af5d4a49cba2fe0f678ff001c374 to your computer and use it in GitHub Desktop.
// create object person
var person = {
"name": "John Doe",
"city": "Jakarta",
"work": "TADA",
"position": "Software Engineer",
}
// store to pouchdb
db.put(person)
.then(success => ...)
.catch(error => ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment