For .NET Developers

Native .NET client for accessing the Graphlit Platform

.NET Client

Overview

The Graphlit Client for .NET enables easy interaction with the Graphlit API, allowing developers to execute queries and mutations against the Graphlit platform.

Prerequisites

Before you begin, ensure you have the following:

  • .NET 6.0 or .NET 8.0 (or newer) installed on your system.

  • An active account on the Graphlit Platform with access to the API Settings page.

Installation

To install the Graphlit Client, use dotnet add package:

dotnet add package Graphlit

Configuration

organizationId = "YOUR_ORGANIZATION_ID"
environmentId = "YOUR_ENVIRONMENT_ID"
jwtSecret = "YOUR_JWT_SECRET"

using var httpClient = new HttpClient();

var graphlit = new Graphlit(
    httpClient,
    organizationId, 
    environmentId, 
    jwtSecret
)

Last updated