We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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()
The text was updated successfully, but these errors were encountered:
This issue is stale because it has been open 30 days with no activity.
Sorry, something went wrong.
No branches or pull requests
Describe the bug
Indexed unique will not work after Field regex.
To Reproduce
not work
work
The text was updated successfully, but these errors were encountered: