Skip to content

magaya-dev/hyperion-algorithms

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

Algorithms meant to be used with hyperion in node environment

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published