MongoDB field only accepts 3 special values

{
  slider_value: {
    type: String,
    enum: ["1", "4", "10"],
  },
}
Topics: MongoDB

Related Code Examples