assigning value between two options in a mongoDB Schema Get link Facebook X Pinterest Email Other Apps July 30, 2025 we use enum to allocate value between two options status: { type: String, enum: ["draft", "published"], default: "draft" } Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment