Automattic / monk

The wise MongoDB API
MIT License
1.85k stars 182 forks source link

Monk Create Index Documentation #272

Open mikr13 opened 5 years ago

mikr13 commented 5 years ago

While doing this: users.index({"username": 1}, {unique: true}); I get a deprecation notice like this: DEPRECATED (collection.ensureIndex): use collection.createIndex instead (see https://Automattic.github.io/monk/docs/collection/createIndex.html) But on the documentation page ie https://Automattic.github.io/monk/docs/collection/createIndex.html, no such warning is listed. So I guess documentation needs a update about deprecation?

ndabAP commented 5 years ago

Unfortunately, it also returns a Promise now.

MIKR13MS commented 5 years ago

@ndabAP Yeah, let me make the necessary changes and make a pull request. Sorry, I am late with my reply, was busy with other projects.