LiteGraph.Sdk
7.0.0
dotnet add package LiteGraph.Sdk --version 7.0.0
NuGet\Install-Package LiteGraph.Sdk -Version 7.0.0
<PackageReference Include="LiteGraph.Sdk" Version="7.0.0" />
<PackageVersion Include="LiteGraph.Sdk" Version="7.0.0" />
<PackageReference Include="LiteGraph.Sdk" />
paket add LiteGraph.Sdk --version 7.0.0
#r "nuget: LiteGraph.Sdk, 7.0.0"
#:package LiteGraph.Sdk@7.0.0
#addin nuget:?package=LiteGraph.Sdk&version=7.0.0
#tool nuget:?package=LiteGraph.Sdk&version=7.0.0
<img src="../../assets/favicon.png" width="256" height="256">
LiteGraph C# SDK
This SDK is part of the LiteGraph monorepo. For other language SDKs, see the SDK overview.
LiteGraph is a property graph database with support for graph relationships, tags, labels, metadata, data, and vectors. LiteGraph is intended to be a unified database for providing persistence and retrieval for knowledge and artificial intelligence applications.
Current release: v7.0.0.
New in v7.0.0
- Added v7 graph transaction diagnostics, lifecycle state, and isolation-level models
- Added transaction execution helpers aligned with the REST v7 transaction response body
- Updated SDK metadata for the LiteGraph v7.0.0 release
New in v6.0.2
- Added
BulkCreateReturnModeEnumoverloads for label, tag, vector, node, and edgeCreateManymethods - Added minimal bulk create responses while preserving existing full-response defaults
- Updated bulk create documentation and route coverage
New in v6.0.0
- Native graph query, graph transaction, authorization, and request history client helpers
- v6 request/response models for query, transaction, and authorization workflows
- API coverage aligned with the LiteGraph v6.0.0 REST surface
Bugs, Feedback, or Enhancement Requests
Please feel free to start an issue or a discussion!
Example
Refer to the Test.Sdk project for a full example.
using LiteGraph.Sdk;
LiteGraphSdk sdk = new LiteGraphSdk("http://localhost:8701", "default");
Guid tenantGuid = Guid.Parse("00000000-0000-0000-0000-000000000000");
Graph graph = sdk.Graph.Create(new Graph { TenantGUID = tenantGuid, Name = "My graph" });
Node node1 = sdk.Node.Create(new Node { TenantGUID = tenantGuid, GraphGUID = graph.GUID, Name = "My node 1" });
Node node2 = sdk.Node.Create(new Node { TenantGUID = tenantGuid, GraphGUID = graph.GUID, Name = "My node 2" });
Edge edgeFrom1To2 = sdk.Edge.Create(new Edge { TenantGUID = tenantGuid, GraphGUID = graph.GUID, From = node1.GUID, To = node2.GUID });
Graph Transactions
Graph transactions execute create, update, delete, attach, detach, and upsert operations atomically inside one tenant and graph. Failed execution returns a TransactionResult with Success = false and diagnostics. Request validation failures set ValidationFailure = true; provider execution failures set RolledBack = true.
Guid adaGuid = Guid.NewGuid();
Guid graceGuid = Guid.NewGuid();
TransactionRequest request = sdk.Transaction.CreateRequestBuilder()
.WithMaxOperations(10)
.WithTimeoutSeconds(30)
.WithIsolationLevel(TransactionIsolationLevelEnum.Default)
.CreateNode(new Node { GUID = adaGuid, Name = "Ada" })
.CreateNode(new Node { GUID = graceGuid, Name = "Grace" })
.CreateEdge(new Edge { From = adaGuid, To = graceGuid, Name = "Worked With" })
.Build();
TransactionResult result = await sdk.Transaction.Execute(tenantGuid, graph.GUID, request);
Console.WriteLine($"{result.Success} {result.State} {result.TransactionId} {result.DurationMs}ms");
TransactionResult includes lifecycle state, validation-failure state, provider, isolation, commit/rollback timing, retryability, concurrency-conflict, provider error code, and whether the request used an isolated transaction repository or the legacy serialized fallback.
Version History
Please refer to CHANGELOG.md for version history.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net8.0
- ExpressionTree (>= 1.1.2)
- PrettyId (>= 1.0.5)
- RestWrapper (>= 3.1.4)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on LiteGraph.Sdk:
| Package | Downloads |
|---|---|
|
View.Sdk
C# SDK for View AI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 7.0.0 | 72 | 6/19/2026 |
| 6.0.3 | 95 | 6/13/2026 |
| 6.0.0 | 120 | 4/18/2026 |
| 5.0.0 | 1,015 | 11/27/2025 |
| 4.1.2 | 964 | 11/19/2025 |
| 4.1.1 | 1,165 | 11/5/2025 |
| 4.1.0 | 2,806 | 7/22/2025 |
| 4.0.9 | 724 | 7/3/2025 |
| 4.0.8 | 205 | 7/1/2025 |
| 4.0.6 | 258 | 6/22/2025 |
| 4.0.5 | 190 | 6/22/2025 |
| 4.0.4 | 232 | 6/5/2025 |
| 4.0.3 | 250 | 5/28/2025 |
| 4.0.2 | 221 | 5/27/2025 |
| 4.0.1 | 234 | 5/26/2025 |
| 4.0.0 | 260 | 4/22/2025 |
| 3.1.5 | 442 | 2/17/2025 |
| 3.1.4 | 186 | 2/15/2025 |
| 3.1.3 | 208 | 2/10/2025 |
| 3.1.1 | 182 | 1/15/2025 |
v7.0.0 release with transaction diagnostics, isolation options, and parallel transaction scaling support.