You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
333 B

const mongoose = require('mongoose');
const Schema = mongoose.Schema;
let example =
new Schema(
{
property: {type: String, required: false, max: 100},
}
);
const Example = module.exports = mongoose.model('roleRule', example);
module.exports.get = (callback, limit)=>
{
Example.find(callback).limit(limit);
}