Skip to content

Instantly share code, notes, and snippets.

@thoughtspeed7
Created April 23, 2018 11:20
Show Gist options
  • Save thoughtspeed7/6a1e35d486a54556462aa9f77f3f3e44 to your computer and use it in GitHub Desktop.
Save thoughtspeed7/6a1e35d486a54556462aa9f77f3f3e44 to your computer and use it in GitHub Desktop.
Reusing Mongoose Schema
// om namah shivay
const mongoose = require('mongoose');
const mobile = {
country_code: String,
number: String
};
module.exports = {
mobile
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment