RavenDB 4.0 Node.JS client RTM

time to read 1 min | 29 words

The Node.JS client for RavenDB 4.0 is out. You can get it directly from NPM. Here is how this looks like:

const { DocumentStore } = require('ravendb');
const store = new DocumentStore('http://live-test.ravendb.net', 'Norhtwind');
store.initialize();
const session = store.openSession();
let product = await session.load('products/1-A');
product.in_stock = false;
product.last_update = new Date();
await session.saveChanges();
view raw ravendb.node.js hosted with ❤ by GitHub

Enjoy Smile.