Open mikr13 opened 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?
Unfortunately, it also returns a Promise now.
Promise
@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.
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?