IDocumentApiClientPatchDocumentAsyncT, 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 Task<PatchDocumentResponse<U>> PatchDocumentAsync<T, U>(
string collectionName,
string documentKey,
T body,
PatchDocumentQuery query = null,
DocumentHeaderProperties headers = null
)
Function PatchDocumentAsync(Of T, U) (
collectionName As String,
documentKey As String,
body As T,
Optional query As PatchDocumentQuery = Nothing,
Optional headers As DocumentHeaderProperties = Nothing
) As Task(Of PatchDocumentResponse(Of U))
generic<typename T, typename U>
Task<PatchDocumentResponse<U>^>^ PatchDocumentAsync(
String^ collectionName,
String^ documentKey,
T body,
PatchDocumentQuery^ query = nullptr,
DocumentHeaderProperties^ headers = nullptr
)
abstract PatchDocumentAsync :
collectionName : string *
documentKey : string *
body : 'T *
?query : PatchDocumentQuery *
?headers : DocumentHeaderProperties
(* Defaults:
let _query = defaultArg query null
let _headers = defaultArg headers null
*)
-> Task<PatchDocumentResponse<'U>>
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:
TaskPatchDocumentResponseUSee Also