1.0.0 • Published 3 years ago
tenantapp-helper-functions v1.0.0
helper-functions for Tenant App
This package helps to make two set of functions available globally in tenantApp
Installation
To install, use the command below
code
npm install tenantapp-helper-functions
Usage
How to require the 2 functions.
code
const { isValidMongooseId } = require('tenantapp-helper-functions');
code
const { schemaError} = require('tenantapp-helper-functions');;
The isValidMongooseId function usage
code
isvalidMongooseId('pass in the mongoose Id');
The schemaError function usage
code
schema('pass in the model');
1.0.0
3 years ago