Closed hgalytoby closed 4 months ago
Describe the bug Indexed unique will not work after Field regex.
To Reproduce
class RegexTest(Document): val: Indexed(str, unique=True) = Field(regex=r"^[a-zA-Z0-9]+$") await RegexTest(val='123').create() await RegexTest(val='123').create()
class RegexTest(Document): val: Indexed(str, unique=True) = Field() await RegexTest(val='123').create() await RegexTest(val='123').create()
This issue is stale because it has been open 30 days with no activity.
This issue was closed because it has been stalled for 14 days with no activity.
Describe the bug Indexed unique will not work after Field regex.
To Reproduce
not work
work