Imporing data manually with GUI MongoDB causes ReferenceError: collection is not defined?

Imporing data manually with GUI MongoDB causes ReferenceError: collection is not defined?

当我尝试聚合以加入两个集合时,我在现有集合上收到此错误

show dbs

Bankerise 172 kB admin 102 kB config 73.7 kB local 73.7 kB

use Bankerise

switched to db Bankerise

show collections

usedData UserApp


db.usedData.aggregate( [    { 
     $lookup : {
                 from: UserApp,
                localField:"id",
                   foreignField: "id", as:"same_id"       
                }   
     }])

ReferenceError: UserApp is not defined

我认为这是因为我使用 GUI 手动导入了数据。

我在这里遗漏了什么?

正如 prasad_ 先生在评论中所写,这是一个语法错误,它被遗漏了 " " on UserApp