Guest User

Untitled

a guest
Feb 22nd, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. const shared = {
  2. type: String,
  3. required: true,
  4. }
  5.  
  6. const SpeciesSchema = new Schema({
  7. name: {
  8. common: shared,
  9. scientific: shared,
  10. },
  11. organism: {
  12. ...shared,
  13. enum: ["Plant", "Animal", "Other"],
  14. },
  15. ...,
  16. }
Add Comment
Please, Sign In to add comment