const mongoose = require('mongoose'); const Schema = mongoose.Schema; let feed = new Schema( { ChannelId: {type:String, required: true}, YTChannelId: {type:String, required: true}, CostumMessage:{type:String, required:false}, gID:{type:String, required:false}, } ); const Feed = module.exports = mongoose.model('feed', feed); module.exports.get = (callback, limit)=> { Feed.find(callback).limit(limit); }