Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import mongoose from 'mongoose';
import URLSlugs from 'mongoose-url-slugs';
import mongoPagination from 'mongo-cursor-pagination';
const Song = mongoose.Schema({
title: String
}, {
timestamps: true
});
Song.plugin(URLSlugs('title', { field: 'slug', update: true }));
Song.plugin(mongoPagination.mongoosePlugin);
export default mongoose.model('Song', Song);