DB.UPDATE
POST
To update one or multiple documents in a collection
Request
- application/json
Body
- DB_UPDATE_ONE_BY_KEY_SCHEMA
- DB_UPDATE_MANY_BY_KEY_SCHEMA
- DB_UPDATE_MANY_BY_MATCHES_SCHEMA
- Array [
- ]
oneOf
action stringrequired
Default value: db.update
The action name
collection stringrequired
The collection name
data objectrequired
The object to update
_key stringnullablerequired
The document key
action stringrequired
Default value: db.update
The action name
collection stringrequired
The collection name
data object[]required
The object to update
_key stringrequired
The document _key. Every document must have a _key
action stringrequired
Default value: db.update
The action name
collection stringrequired
The collection name
matches objectrequired
The matches criteria
data objectrequired
The data to update with based on the matches criteria
Responses
- 200
Mutation response
- application/json
- Schema
- Example (from schema)
Schema
data object[]
Array of documents mutated
{
"data": [
{}
]
}
Loading...