Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-ebaas

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-ebaas

ele baas node sdk

  • 1.1.2
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

node-ebaas

ele baas node sdk

install

npm install node-ebaas

use

const Baas = require('node-ebaas');

const APPID = '59192c5984a2fc6c74675dbd';
const TABLE = 'docs';

const DocModel = new Baas(APPID, TABLE);

let docs = await DocModel.find();

method

Model

find(query)

查询

count(query)

计数

findById(_id)

根据 _id 查询

create(body)

创建

update(_id, body)

更新

如果是新的属性,需要使用 set(key, value) 添加

remove(_id)

删除

Instance

save()

更新保存 如果是新的属性,需要使用 set(key, value) 添加

update(body)

更新保存 如果是新的属性,需要使用 set(key, value) 添加

detroy()

删除

inc(key, value)

增减操作,save() 后生效

FAQs

Package last updated on 11 Aug 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc