DocumentClient.createCollection(String databaseLink, DocumentCollection collection, RequestOptions options) Method

Definition

Creates a document collection.

public ResourceResponse<DocumentCollection> createCollection(String databaseLink, DocumentCollection collection, RequestOptions options)

Parameters

databaseLink
String

the database link.

collection
DocumentCollection

the collection.

options
RequestOptions

the request options.

Returns

the resource response with the created collection.

Exceptions

DocumentClientException

the document client exception.

Applies to