I want to use the partial indexes of Mongo 3.2. To do that I need to call attachIndex
. But Meteor does not expose this in it’s Collection
s. How can I perform this through Meteor?
Can you point me to MongoDB’s documentation for attachIndex
? I cannot find any reference to it.
Uuurgh. Apologies. createIndex
is what I was looking for. And when I look on the rawCollection()
then I can see that it’s there. And Meteor’s _ensureIndex
eventually gets there (although deprecated in Mongo ensureIndex
is an alias for createIndex
).
Thanks for pointing out the obvious mistake.
1 Like