1.0.0 • Published 6 years ago

@magaya/hyperion-algorithms v1.0.0

Weekly downloads
19
License
MIT
Repository
github
Last release
6 years ago

Hyperion-Algorithms - Base Algorithms for Hyperion

Building blocks for Hyperion

Hyperion-Algorithms offers a set of functions for working with hyperion lists and working with documents.

const Algorithms = require('hyperion-algorithms');
const connection = require('{get hyperion somehow}');

const algo = new Algorithms(connection.async);

algo.select(connection.hyperion.using(connection.hyperion.dbx.Shipping.Booking.ListByTime))
    .where(booking => booking.GUID !== undefined)
    .project(booking => ({
        id: booking.GUID,
        createdOn: new Date(booking.CreatedOn)
    }))
    .then(bookings => console.log(bookings));

Algorithms

  • forEach
  • transform
  • accumulate
  • anyOf
  • allOf
  • noneOf
  • find
  • findFirst
  • collect
  • select

Descriptions coming soon...