@loladb/sdk-js
v1.0.60
Published
LolaDB Node.JS js/ts sdk
Downloads
138
Readme
@loladb/sdk-js
Official JavaScript SDK for LolaDB.
The basics
Installation
npm i @loladb/sdk-js
Usage
Import and initialize the SDK.
import LolaDB from "@loladb/sdk-js";
const lola = new LolaDB('<<API_KEY>>')
Querying
Query a database after setting it up in the lolaDB App.
const {data, error} = await lola.query.execute({
queryId: 'lola.q.-ddqHfqeZNihbChcAbf',
context: {
created_at: '2022-01-01',
status: 'active'
}
})