I have a schema with some of the properties that have trim: true. The user submits a partial entry including one of those properties with a trailing space, but the entry gets saved without trimming the trailing space. Any supporting docs you could link to that would explain why the trim setter wouldn’t be invoked when saving a new entry?
Skip to main content
New & Unread Topics
Topic | Replies | Views | Activity |
---|---|---|---|
Insert with join | 0 | 512 | Apr 2024 |
Multiple lookup stages vs multiple separated find queries | 6 | 435 | Jul 2024 |
findOneAndUpdate | 9 | 296 | Sep 2024 |
How to catch `ECONNRESET` errors (i.e. ConnectionClosedEvent) | 0 | 86 | Sep 2024 |
userId not inserting via args but works with static payload in MongoDB | 0 | 11 | Mar 24 |