Hi, I just started playing with Mongoose. Seems pretty awesome!
Now, based on the background of Django, how to implement one type of parameter fields, for example:
STATUS_OPTIONS : [{"Open",1},{"Closed",2},{"Pending",3"}] status: { type:String, required:true, options:STATUS_OPTIONS },
So that it can be set as status = Open or something like that.
Or should it just be the normal String field, and I set it accordingly in my application?
Harry source share