Skip to content

Monk Create Index Documentation #272

Open

Description

@mikr13

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

  1. ndabAP commented on May 28, 2019

    @ndabAP

    Unfortunately, it also returns a Promise now.

  2. MIKR13MS commented on Aug 5, 2019

    @MIKR13MS

    @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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions