Click or drag to resize

DocumentApiClient Class

Provides access to ArangoDB document API.
Inheritance Hierarchy
SystemObject
  ArangoDBNetStandardApiClientBase
    ArangoDBNetStandard.DocumentApiDocumentApiClient

Namespace:  ArangoDBNetStandard.DocumentApi
Assembly:  ArangoDBNetStandard (in ArangoDBNetStandard.dll) Version: 1.1.0
Syntax
public class DocumentApiClient : ApiClientBase, 
	IDocumentApiClient

The DocumentApiClient type exposes the following members.

Constructors
  NameDescription
Public methodDocumentApiClient(IApiClientTransport)
Creates an instance of DocumentApiClient using the provided transport layer and the default JSON serialization.
Public methodDocumentApiClient(IApiClientTransport, IApiClientSerialization)
Creates an instance of DocumentApiClient using the provided transport and serialization layers.
Top
Methods
  NameDescription
Public methodDeleteDocumentAsync(String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document based on its document ID.
Public methodDeleteDocumentAsync(String, String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document.
Public methodDeleteDocumentAsyncT(String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document based on its document ID.
Public methodDeleteDocumentAsyncT(String, String, DeleteDocumentQuery, DocumentHeaderProperties)
Delete a document.
Public methodDeleteDocumentsAsync(String, IListString, DeleteDocumentsQuery, DocumentHeaderProperties)
Delete multiple documents based on the passed document selectors. A document selector is either the document ID or the document Key.
Public methodDeleteDocumentsAsyncT(String, IListString, DeleteDocumentsQuery, DocumentHeaderProperties)
Delete multiple documents based on the passed document selectors. A document selector is either the document ID or the document Key.
Protected methodDeserializeJsonFromStreamT (Inherited from ApiClientBase.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodGetApiErrorException
Gets an ApiErrorException from the provided error response.
(Inherited from ApiClientBase.)
Protected methodGetContentT (Inherited from ApiClientBase.)
Protected methodGetContentStringT (Inherited from ApiClientBase.)
Public methodGetDocumentAsyncT(String, DocumentHeaderProperties)
Get an existing document based on its Document ID.
Public methodGetDocumentAsyncT(String, String, DocumentHeaderProperties)
Get an existing document.
Public methodGetDocumentsAsyncT
Get multiple documents.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Protected methodGetHeaderCollection
Method to get the header collection.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHeadDocumentAsync(String, DocumentHeaderProperties)
Like GET, but only returns the header fields and not the body. You can use this call to get the current revision of a document or check if the document was deleted. HEAD/_api/document/{document-handle}
Public methodHeadDocumentAsync(String, String, DocumentHeaderProperties)
Like GET, but only returns the header fields and not the body. You can use this call to get the current revision of a document or check if the document was deleted. HEAD /_api/document/{document-handle}
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPatchDocumentAsyncT, U(String, T, PatchDocumentQuery, ApiClientSerializationOptions, 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}
Public methodPatchDocumentAsyncT, U(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}
Public methodPatchDocumentsAsyncT, U
Partially updates documents, the documents to update are specified by the _key attributes in the body objects. 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}
Public methodPostDocumentAsyncT(String, T, PostDocumentsQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Post a single document.
Public methodPostDocumentAsyncT, U(String, T, PostDocumentsQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Post a single document with the possibility to specify a different type for the new document object returned in the response.
Public methodPostDocumentsAsyncT
Post multiple documents in a single request.
Public methodPutDocumentAsyncT(String, T, PutDocumentQuery, ApiClientSerializationOptions, DocumentHeaderProperties)
Replaces the document with the provided document ID with the one in the body, provided there is such a document and no precondition is violated.
Public methodPutDocumentAsyncT(String, String, T, PutDocumentQuery, DocumentHeaderProperties)
Replaces the document based on its Document ID with the one in the body, provided there is such a document and no precondition is violated.
Public methodPutDocumentsAsyncT
Replace multiple documents.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Protected methodValidateDocumentId
Checks whether the provided document ID is in the correct form of "{collection}/{key}".
(Inherited from ApiClientBase.)
Top
Fields
  NameDescription
Protected field_client
The transport client used to communicate with the ArangoDB host.
Protected field_docApiPath
The root path of the API.
Top
See Also