Click or drag to resize

IDocumentApiClientPatchDocumentsAsyncT, U Method

Partially updates documents, the documents to update are specified by the _key attributes in the body objects.The body of the request must contain a JSON array of document updates with the attributes to patch(the patch documents). All attributes from the patch documents will be added to the existing documents if they do not yet exist, and overwritten in the existing documents if they do exist there. Setting an attribute value to null in the patch documents will cause a value of null to be saved for the attribute by default. If ignoreRevs is false and there is a _rev attribute in a document in the body and its value does not match the revision of the corresponding document in the database, the precondition is violated. PATCH/_api/document/{collection}

Namespace:  ArangoDBNetStandard.DocumentApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
Task<PatchDocumentsResponse<U>> PatchDocumentsAsync<T, U>(
	string collectionName,
	IList<T> patches,
	PatchDocumentsQuery query = null,
	ApiClientSerializationOptions serializationOptions = null,
	DocumentHeaderProperties headers = null
)

Parameters

collectionName
Type: SystemString
patches
Type: System.Collections.GenericIListT
query (Optional)
Type: ArangoDBNetStandard.DocumentApi.ModelsPatchDocumentsQuery
serializationOptions (Optional)
Type: ArangoDBNetStandard.SerializationApiClientSerializationOptions
The serialization options. When the value is null the the serialization options should be provided by the serializer, otherwise the given options should be used.
headers (Optional)
Type: ArangoDBNetStandard.DocumentApi.ModelsDocumentHeaderProperties
The DocumentHeaderProperties values.

Type Parameters

T
Type of the patch object used to partially update documents.
U
Type of the returned documents, only applies when ReturnNew or ReturnOld are used.

Return Value

Type: TaskPatchDocumentsResponseU
See Also