DocumentClient.queryDocuments Method

Definition

Overloads

queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options)

Query for documents in a document collection.

queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options, Object partitionKey)

Query for documents in a document collection.

queryDocuments(String collectionLink, String query, FeedOptions options)

Query for documents in a document collection.

queryDocuments(String collectionLink, String query, FeedOptions options, Object partitionKey)

Query for documents in a document collection with a partitionKey

queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options)

Query for documents in a document collection.

public FeedResponse<Document> queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options)

Parameters

collectionLink
String

the link to the parent document collection.

querySpec
SqlQuerySpec

the SQL query specification.

options
FeedOptions

the feed options.

Returns

the feed response with the obtained documents.

queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options, Object partitionKey)

Query for documents in a document collection.

public FeedResponse<Document> queryDocuments(String collectionLink, SqlQuerySpec querySpec, FeedOptions options, Object partitionKey)

Parameters

collectionLink
String

the link to the parent document collection.

querySpec
SqlQuerySpec

the SQL query specification.

options
FeedOptions

the feed options.

partitionKey
Object

the partitionKey.

Returns

the feed response with the obtained documents.

queryDocuments(String collectionLink, String query, FeedOptions options)

Query for documents in a document collection.

public FeedResponse<Document> queryDocuments(String collectionLink, String query, FeedOptions options)

Parameters

collectionLink
String

the link to the parent document collection.

query
String

the query.

options
FeedOptions

the feed options.

Returns

the feed response with the obtained documents.

queryDocuments(String collectionLink, String query, FeedOptions options, Object partitionKey)

Query for documents in a document collection with a partitionKey

public FeedResponse<Document> queryDocuments(String collectionLink, String query, FeedOptions options, Object partitionKey)

Parameters

collectionLink
String

the link to the parent document collection.

query
String

the query.

options
FeedOptions

the feed options.

partitionKey
Object

the partitionKey.

Returns

the feed response with the obtained documents.

Applies to