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?
Activity
ndabAP commentedon May 28, 2019
Unfortunately, it also returns a
Promisenow.MIKR13MS commentedon Aug 5, 2019
@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.