i\'m using mongoose with nodejs, and i need to create a dynamic schema model, this is my code:
schema.add({key : String});
key = \"user_nam
const options = {}; options[key] = String; schema.add(options);