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.
可能重复: 如何在流星应用程序中向 mongodb 添加两列唯一 ID?
mongo 索引是否在 Meteor 中以任何方式实现?我正在尝试对集合中文档的唯一名称进行索引。
就像是:
Collection.ensureIndex({name:1});