Skip to content

how to index in schema or use mongoose plugins with shema via nuxt-mongoose #58

Open
@hoanghiep1x0

Description

@hoanghiep1x0

I used a hook but it doesn't seem to hit the index

 hooks(schema) {
        schema.index({ name: 'text' });
    }

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