For Node.js Developers

Native Node.js client for accessing the Graphlit Platform

Overview

The Graphlit Client for Node.js enables straightforward interactions with the Graphlit API, allowing developers to execute GraphQL queries and mutations against the Graphlit service. This document outlines the setup process and provides a basic example of using the client.

Prerequisites

Before you begin, ensure you have the following:

  • Node.js installed on your system (recommended version 14.x or higher).

  • An active account on the Graphlit Platform with access to the API settings dashboard.

Installation

To install the Graphlit Client, use npm or yarn:

npm install graphlit-client

or

yarn add graphlit-client

Configuration

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

const graphlit = new Graphlit(organizationId, environmentId, jwtSecret);

Last updated