typedb-driver
TypeScript icon, indicating that this package has built-in type declarations

2.28.0-rc0 • Public • Published

TypeDB Node.js Driver

Factory Discord Discussion Forum Stack Overflow Stack Overflow

Driver Architecture

To learn about the mechanism that a TypeDB Driver uses to set up communication with databases running on the TypeDB Server, refer to the Clients Overview.

API Reference

To learn about the methods available for executing queries and retrieving their answers using Driver NodeJS, refer to the API Reference.

Installation

Node.js version 14 or above is recommended.

npm install typedb-driver

Further documentation: https://typedb.com/docs/drivers/nodejs/overview

Using TypeScript

typedb-driver is a TypeScript project and provides its own type definitions out of the box - for example:

import { EntityType } from 'typedb-driver';

Build TypeDB Driver for Node.js from Source

Note: You don't need to compile TypeDB Driver from source if you just want to use it in your code. See the "Import TypeDB Driver for Node.js" section above.

We recommend using yarn, see https://yarnpkg.com/ for information about yarn.

  1. Make sure you have the following installed: Node.js (version 14 or above); npm package manager; yarn package manager.
  2. Clone the project and run yarn at the root directory (containing package.json)
  3. Run yarn run build
  4. The JavaScript files, and their matching TypeScript type definitions are compiled to the dist directory.

Note: TypeDB Driver can be run without TypeScript, however its type assertions may make development smoother.

Readme

Keywords

none

Package Sidebar

Install

npm i typedb-driver

Homepage

vaticle.com

Weekly Downloads

16

Version

2.28.0-rc0

License

Apache-2.0

Unpacked Size

458 kB

Total Files

152

Last publish

Collaborators

  • vaticle-bot