hyper connect

hyper-connect is the client access library for hyper.

API

The hyper-connect API is intuitive. Promises are returned. This makes composition easy.

Method

Description

Example

hyper.data.add

creates a document

hyper.data.add({...})

hyper.data.get

retrieves a document by id

hyper.data.get("id")

hyper.data.update

updates a document

hyper.data.update("id", {...})

hyper.data.remove

removes a document

hyper.data.remove("id")

hyper.data.list

lists documents

hyper.data.list()

hyper.data.query

queries documents with a mongo style selector

hyper.data.query({ year: { $gt: '1984' }})

hyper.data.bulk

inserts, updates and/or deletes documents using an array of documents

hyper.data.bulk([...])

NodeJS

Any hyper-connect command returns a promise. Since NodeJS is unopinionated on async HTTP clients, you may use any HTTP client available in the NodeJS ecosystem. node-fetch is a common HTTP client that implements the fetch API standard.

Install

To install hyper-connect in your project, use npm or yarn to add to your NodeJS project

Shell
Node

Deno

Since Deno provides fetch in the runtime, hyper-connect can directly reference fetch and create a wrapper around the request object. With the Deno version of hyper-connect, you can create an environment variable called HYPER and assign the connection-string for your hyper cloud application. Then import the proxy.js wrapper around hyper-connect.

Shell

Data Service

Deno

ο»Ώ

ο»Ώ

ο»Ώ