@magaya/hyperion-write-access
v0.2.0
Published
Write access wrapper for hyperion.
Downloads
309
Readme
Hyperion Write Access
What is it?
Write access wrapper for operations in hyperion.
How to use it?
Can be used as follows:
let hyperionConnection; // ... get raw hyperion object
const WriteAccess = require('@magaya/hyperion-write-access');
const writer = new WriteAccess(hyperionConnection.async); // Needs methods in async
// Get interface object
let dbObject; // ... get object from hyperion
let objectToModify = await writer.edit(dbObject);
// Begin editing objectToModify
let modifiedDbObject = await writer.save(objectToModify);