0.2.0 • Published 11 months ago

@magaya/hyperion-write-access v0.2.0

Weekly downloads
19
License
MIT
Repository
github
Last release
11 months ago

Hyperion Write Access

CircleCI

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);