You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There has to be a way to not have any reserved words. I'm working with existing data which has "options" as a key. Welp, that happens to be a reserved key in schemas and throws an error for me. Granted, I can probably map this some other way, or if mongoose allowed for field name mapping (which is a separate issue), I feel that the use of the word "option" or "options" is a common word.
Anyway, what do you think?
The text was updated successfully, but these errors were encountered:
After googling, this seems to be an issue for a lot of people, but i feel that it's a quick hacky fix to just throw an error and not allow certain properties.
Users should be able to use things like, "model" or "collection", or "options" if they would like I think. There has to be a way to separate field mapping from schema reserved properties/methods.
There has to be a way to not have any reserved words. I'm working with existing data which has "options" as a key. Welp, that happens to be a reserved key in schemas and throws an error for me. Granted, I can probably map this some other way, or if mongoose allowed for field name mapping (which is a separate issue), I feel that the use of the word "option" or "options" is a common word.
Anyway, what do you think?
The text was updated successfully, but these errors were encountered: