Skip to content
This repository was archived by the owner on Jul 14, 2019. It is now read-only.

Support for custom index #15

@maamve

Description

@maamve

Based on ...
exports.schema = {
_id: Number,
name: String,
email: String,
avatar: String
};

I tried ...
exports.schema.index({name:1}, {unique: true});
and...
exports.index({name:1}, {unique: true});

but neither works. How can i achieve this. Thanks. Great work btw.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions