RavenDB 4.0 Node.JS client RTM
The Node.JS client for RavenDB 4.0 is out. You can get it directly from NPM. Here is how this looks like:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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();
Enjoy .
Comments
Comment preview