MongoRepository是否利用MongoDB游标?

问题描述

SO answer中摘录:

await branchRepository.find({
                    join: {
                        alias: 'branch',leftJoinAndSelect: {
                            users: 'branch.users'
                        }
                    },where: (qb) => {
                        qb.where('role != :role',{ role: 'client' });
                    }
                });

我正试图了解它对于一个大型馆藏将如何工作?这会利用MongoDB游标吗?

解决方法

所有查找查询都使用游标。