Skip to main content

MongoDB Update One

Updates a document by the provided id. You should bind this action to a route i.e. PUT /document/:id.

Configuration

Connection

The MongoDB connection

Collection

The collection

Request

{
"title": "foo",
"content": "bar",
"user": {
"name": "foo",
"uri": "http:\/\/google.com"
}
}

Response

{
"success": true,
"message": "Document successfully updated"
}