I installed GridDB 5.7 and am trying to use the Node.js client to create a store object. My code is:
Input:
const griddb = require('griddb-node');
const factory = griddb.StoreFactory.createStore({
host: '127.0.0.1',
port: 10001,
clusterName: 'defaultCluster',
username: 'admin',
password: 'admin'
});
console.log(factory);
When I run
node test.js
I get:
TypeError: griddb.StoreFactory.createStore is not a function
I’ve also tried:
griddb.StoreFactory.getStore()
griddb.StoreFactory.get()
…but they all fail with similar errors..
The official GridDB Node.js docs mention createStore / getStore methods, but my installation doesn’t seem to have them
Environment:
WSL Ubuntu 22.04
Node.js: 16.x
GridDB: 5.7
What I want to know:
What is the correct way to create a store object using the Node.js client for GridDB 5.7
factoryand see what it has?griddb/griddb.StoreFactoryreturns?console.log(griddb)