Click or drag to resize

DocumentApiClientPatchDocumentAsyncT, U Method (String, String, T, PatchDocumentQuery, DocumentHeaderProperties)

Partially updates the document identified by document-handle. The body of the request must contain a JSON document with the attributes to patch(the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there. PATCH/_api/document/{document-handle}

Namespace:  ArangoDBNetStandard.DocumentApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
public virtual Task<PatchDocumentResponse<U>> PatchDocumentAsync<T, U>(
	string collectionName,
	string documentKey,
	T body,
	PatchDocumentQuery query = null,
	DocumentHeaderProperties headers = null
)

Parameters

collectionName
Type: SystemString
documentKey
Type: SystemString
body
Type: T
query (Optional)
Type: ArangoDBNetStandard.DocumentApi.ModelsPatchDocumentQuery
headers (Optional)
Type: ArangoDBNetStandard.DocumentApi.ModelsDocumentHeaderProperties
The DocumentHeaderProperties values.

Type Parameters

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

Return Value

Type: TaskPatchDocumentResponseU

Implements

IDocumentApiClientPatchDocumentAsyncT, U(String, String, T, PatchDocumentQuery, DocumentHeaderProperties)
See Also