为什么db.user.count()的结果在mongo中为0?
)的图像
db.collection.count ( “ https://i.sstatic.net/9tunh.jpg” alt =“在此处输入图像说明”>
as you can see in the image below I just create an user even though it still gave 0 , and the same thing with collections when I run show collection it shows me one , but when when I do db.collection.count() gave me 0.
the image for db.collection.count()
I do have one document on this collection here is image from Mongo compass
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查:
请注意,将代码添加为文本而不是图片是一个好习惯,以便更容易解释。
check:
Note also it is a good practice to add code as text and not as pictures so it is easier to interpret.