We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
一定一定要以单词的复数形式集合名字,不然在通过mongoose操作时会发现自己操作的数据库与自己创建的不是一个集合,经常会操作出出乎意料的数据。
mongoose
这是因为mongoose在与数据集合关联时,会自动将集合名转换为复数形式。
追加
文档中的属性如果是一个数组,属性名也要为复数。
The text was updated successfully, but these errors were encountered:
No branches or pull requests
MongoDB集合命名规范
一定一定要以单词的复数形式集合名字,不然在通过
mongoose
操作时会发现自己操作的数据库与自己创建的不是一个集合,经常会操作出出乎意料的数据。这是因为
mongoose
在与数据集合关联时,会自动将集合名转换为复数形式。追加
文档中的属性如果是一个数组,属性名也要为复数。
The text was updated successfully, but these errors were encountered: