TechnologyDecember 20, 2017

C# Fluent API for DSE Graph Released

Jorge Bay Gondra
Jorge Bay Gondra
C# Fluent API for DSE Graph Released
dotnet add package Dse.Graph
using Dse; using Dse.Graph; using Gremlin.Net;
IDseCluster cluster = DseCluster.Builder() .AddContactPoint("127.0.0.1") .Build(); IDseSession session = cluster.Connect();
GraphTraversalSource g = DseGraph.Traversal(session);
var traversal = g.V().HasLabel("person").Values<string>("name"); </string>
GraphResultSet result = session.ExecuteGraph(traversal);
GraphResultSet result = await session.ExecuteGraphAsync(traversal);
List<string> names = traversal.ToList(); </string>
Discover more
GremlinDataStax EnterpriseDSE GraphDriversC# / .NET
Share

One-stop Data API for Production GenAI

Astra DB gives JavaScript developers a complete data API and out-of-the-box integrations that make it easier to build production RAG apps with high relevancy and low latency.