1.0.0 • Published 7 years ago

@datafire/onedb v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

@datafire/onedb

Client library for OneDB

Installation and Usage

npm install --save @datafire/onedb
let onedb = require('@datafire/onedb').create({
  host: "",
  core_host: "",
  username: "",
  password: "",
  access_token: ""
});

onedb.get({
  "namespace": "",
  "type": "",
  "id": ""
}).then(data => {
  console.log(data);
});

Description

An open source backend-as-a-service

Actions

get

onedb.get({
  "namespace": "",
  "type": "",
  "id": ""
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • id required string

Output

Output schema unknown

list

onedb.list({
  "namespace": "",
  "type": ""
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • query object
      • sort string
      • created_before string
      • created_since string
      • updated_before string
      • updated_since string
      • created_by string
      • owner string

Output

Output schema unknown

create

onedb.create({
  "namespace": "",
  "type": "",
  "item": {}
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • id string
    • item required object

Output

Output schema unknown

update

onedb.update({
  "namespace": "",
  "type": "",
  "id": "",
  "item": {}
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • id required string
    • item required object

Output

Output schema unknown

append

onedb.append({
  "namespace": "",
  "type": "",
  "id": "",
  "item": {}
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • id required string
    • item required object

Output

Output schema unknown

delete

onedb.delete({
  "namespace": "",
  "type": "",
  "id": ""
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • id required string

Output

Output schema unknown

updateACL

onedb.updateACL({
  "namespace": "",
  "type": "",
  "acl": {}
}, context)

Input

  • input object
    • namespace required string
    • type required string
    • acl required object

Output

Output schema unknown

Definitions

This integration has no definitions