Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. const mongoose = require("mongoose");
  2. const modelInterfaceBuilder = require('../lib/model-interface-builder');
  3. const schema = require("../schemas/product");
  4.  
  5. const model = mongoose.model("products", schema);
  6.  
  7. module.exports = modelInterfaceBuilder(model);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement