Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Monk Create Index Documentation #272

Open
mikr13 opened this issue May 2, 2019 · 2 comments
Open

Monk Create Index Documentation #272

mikr13 opened this issue May 2, 2019 · 2 comments

Comments

@mikr13
Copy link

mikr13 commented May 2, 2019

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
Copy link

ndabAP commented May 28, 2019

Unfortunately, it also returns a Promise now.

@MIKR13MS
Copy link

MIKR13MS commented 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants