Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想到了两种方法:将其存储为字符串并在必要时将其转换为 mongoId 对象,或者将其直接存储为对象。首选哪种方法,为什么?