Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 395 Bytes

File metadata and controls

28 lines (20 loc) · 395 Bytes

Vobi-core

Basic CRUD operations module for RESTful api and GraphQL based on MongoDB (Mongoose)

Install

Install vobi-core

npm install -g vobi-cli

Usage

import plugin

let { BaseModelPlugin } = require('vobi-core')

Inject to mongoose schema

var schema = new Schema({
  ...
})

// Inject BaseModelPlugin to mongoose schema
schema.plugin(BaseModelPlugin)