Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(这是我的带有自定义前缀的 discord.js 机器人)
我的数据库中有大量数据保存为 {$guild.id}.prefix 我需要一次性提取作为这些行会前缀的所有条目。我怎样才能做到这一点?
db.collection.find(查询,投影)
试试这个
db.Collection.find( { guild.id: { $regex: /^prefix/ } } )