簡體   English   中英

Mongodb 我可以看到集合的大小,但是 find() 不返回任何內容

[英]Mongodb I can see the size of the collection but, find() does not return anything

我是與 Mongo 合作的新手。 我最近從一位前員工那里接管了我們的 LearningLocker 數據庫。 我可以看到使用 show dbs,數據庫有 4.188GB。 但即使使用簡單的 db.learninglocker.find() 也不會返回任何內容。 有關如何查看數據的任何建議?

您應該將 object 作為參數傳遞給查找 function:

db.learninglocker.find({})

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM