title: How to Post Enum data in Postman with form-data type
body: <p>I've tried searching Google but the answer is irrelevant, what I want to ask is how to Post enum data in Postman.</p>
  
  <p>i currently work in node js with express framework, and i try to modeling my mongoose with multiple reference with enum</p>
  
  <p>but, honestly i always fail when to hit the endpoints</p>
  
  <p>this is my code</p>
  
  <pre><code>fieldBookedIDs: {
          type: Schema.Types.ObjectId,
          required: true,
          // Instead of a hardcoded model name in `ref`, `refPath` means Mongoose
          // will look at the `onModel` property to find the right model.
          refPath: 'fieldBookedID'
      },
      fieldBookedID: {
          type: String,
          required: true,
          enum: ['Player', 'Community']
      },
  </code></pre>
  
  <p>{</p>
  
  <p>the result is</p>
  
  <pre><code>    "error": {
          "message": "field validation failed: fieldBookedIDs: Cast to ObjectID failed for value \"{ fieldBookedID: [ '12234553fscdf', '15454asdasd' ] }\" at path \"fieldBookedIDs\", fieldBookedID: Path `fieldBookedID` is required."
      }
  }
  </code></pre>
  
  <p>thank you for helping :)</p>
  
  <p><a href="https://i.stack.imgur.com/3XLq6.png" rel="nofollow noreferrer">this is an image for my postman</a></p>