GraphExtensions.CreateGremlinQuery Method

Definition

Overloads

CreateGremlinQuery(DocumentClient, DocumentCollection, String, FeedOptions, GraphSONMode)

Method to create a Gremlin expression to create/query graph elements stored under an Azure CosmosDB collection.

CreateGremlinQuery<T>(DocumentClient, DocumentCollection, String, FeedOptions, GraphSONMode)

Method to create a Gremlin expression to create/query graph elements stored under an Azure CosmosDB collection.

CreateGremlinQuery(DocumentClient, DocumentCollection, String, FeedOptions, GraphSONMode)

Method to create a Gremlin expression to create/query graph elements stored under an Azure CosmosDB collection.

public static Microsoft.Azure.Documents.Linq.IDocumentQuery<dynamic> CreateGremlinQuery (this Microsoft.Azure.Documents.Client.DocumentClient documentClient, Microsoft.Azure.Documents.DocumentCollection collection, string gremlinExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null, Microsoft.Azure.Graphs.GraphSONMode graphSONMode = Microsoft.Azure.Graphs.GraphSONMode.Compact);
static member CreateGremlinQuery : Microsoft.Azure.Documents.Client.DocumentClient * Microsoft.Azure.Documents.DocumentCollection * string * Microsoft.Azure.Documents.Client.FeedOptions * Microsoft.Azure.Graphs.GraphSONMode -> Microsoft.Azure.Documents.Linq.IDocumentQuery<obj>

Parameters

documentClient
DocumentClient

The DocumentClient instance to execute the query.

collection
DocumentCollection

The DocumentCollection that contains the graph to query.

gremlinExpression
String

The Gremlin expression.

feedOptions
FeedOptions

The options for processing the query result feed. For details FeedOptions.

graphSONMode
GraphSONMode

The GraphSON mode to use when returning the results of the query.

Returns

An IDocumentQuery<T> that can evaluate the query.

CreateGremlinQuery<T>(DocumentClient, DocumentCollection, String, FeedOptions, GraphSONMode)

Method to create a Gremlin expression to create/query graph elements stored under an Azure CosmosDB collection.

public static Microsoft.Azure.Documents.Linq.IDocumentQuery<T> CreateGremlinQuery<T> (this Microsoft.Azure.Documents.Client.DocumentClient documentClient, Microsoft.Azure.Documents.DocumentCollection collection, string gremlinExpression, Microsoft.Azure.Documents.Client.FeedOptions feedOptions = null, Microsoft.Azure.Graphs.GraphSONMode graphSONMode = Microsoft.Azure.Graphs.GraphSONMode.Compact);
static member CreateGremlinQuery : Microsoft.Azure.Documents.Client.DocumentClient * Microsoft.Azure.Documents.DocumentCollection * string * Microsoft.Azure.Documents.Client.FeedOptions * Microsoft.Azure.Graphs.GraphSONMode -> Microsoft.Azure.Documents.Linq.IDocumentQuery<'T>

Type Parameters

T

Type of the object to query.

Parameters

documentClient
DocumentClient

The DocumentClient instance to execute the query.

collection
DocumentCollection

The DocumentCollection that contains the graph to query.

gremlinExpression
String

The Gremlin expression.

feedOptions
FeedOptions

The options for processing the query result feed. For details FeedOptions.

graphSONMode
GraphSONMode

The GraphSON mode to use when returning the results of the query.

Returns

An IDocumentQuery<T> that can evaluate the query.

Applies to