Created
          October 31, 2019 06:06 
        
      - 
      
- 
        Save barmgeat/fb57293b68759d99755ef726661bdabe to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | const postSchema = new mongosse.Schema({ | |
| title: {type: String, required: true}, | |
| des: {type: String, required: true}, | |
| body: {type: String, required: true}, | |
| tags: [{type: mongosse.Schema.Types.ObjectId, required: true, ref:'Tag'}] | |
| }); | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment