{"action":"closed","issue":{"url":"https://api.github.com/repos/pouchdb/upsert/issues/25","repository_url":"https://api.github.com/repos/pouchdb/upsert","labels_url":"https://api.github.com/repos/pouchdb/upsert/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/pouchdb/upsert/issues/25/comments","events_url":"https://api.github.com/repos/pouchdb/upsert/issues/25/events","html_url":"https://github.com/pouchdb/upsert/issues/25","id":171674897,"number":25,"title":"Upsert error","user":{"login":"arjunnaha","id":7504589,"avatar_url":"https://avatars2.githubusercontent.com/u/7504589?v=3","gravatar_id":"","url":"https://api.github.com/users/arjunnaha","html_url":"https://github.com/arjunnaha","followers_url":"https://api.github.com/users/arjunnaha/followers","following_url":"https://api.github.com/users/arjunnaha/following{/other_user}","gists_url":"https://api.github.com/users/arjunnaha/gists{/gist_id}","starred_url":"https://api.github.com/users/arjunnaha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arjunnaha/subscriptions","organizations_url":"https://api.github.com/users/arjunnaha/orgs","repos_url":"https://api.github.com/users/arjunnaha/repos","events_url":"https://api.github.com/users/arjunnaha/events{/privacy}","received_events_url":"https://api.github.com/users/arjunnaha/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-17T14:38:33Z","updated_at":"2017-03-03T07:08:46Z","closed_at":"2017-03-03T07:08:46Z","body":"Whenever I try to upsert by returning a new object I always get a 500 error. Whether this is an issue with the data I'm trying to add or something else...\n\n`Upsert error: {\"status\":500,\"name\":\"doc_validation\",\"message\":\"Bad special document member: _body\",\"reason\":\"_body\"}`\n\n```\nthis.db.upsert('profile', function (doc) {\n  return data;\n}).then(function (res) {\nconsole.log(\"Upsert success\")\n}).catch(function (err) {\n  console.log(\"Upsert error: \" + err)\n});\n\n```\n"}}
{"actor":{"display_login":"nolanlawson"}}