Skip to content

Sparse false when unique_with #1022

Open
@kaiobrito

Description

@kaiobrito

I'm trying to create a field like this:

unique_for_owner = fields.StringField(unique_with=["owner"], required=False, sparse=True).

But i notice that index was created with sparse=False.

I dropped my collection and made a few tests, so i notice that when unique_with has a value the sparse always getting False.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions