Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var mongoose = require('mongoose');
- var LyricSchema = mongoose.Schema({
- artists:
- { id: String,
- name: String,
- images: String
- },
- albums:
- [ { album: [{
- id:String,
- name:String,
- image:String
- }],
- tracks: [{
- name:String
- }] }]
- });
- var Lyric = module.exports = mongoose.model('lyric', LyricSchema);
- module.exports.save = function(json, callback){
- Lyric.create(json, callback);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement