I have implemented a kind of "dynamic" enum in MongoDB.
Basically, a collection with documents of the form:
const lngString = new mongoose.Sc