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);
- 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.
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);
- T
Type of the object to query.
- 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.
An IDocumentQuery<T> that can evaluate the query.