-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
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
[docs] Unique fields #384
Comments
Ok did some verification, and it seems unique wasn't enforced for me. I changed the schema to have unique: true, it warned me it changed, cleared data, inserted a few things with the same property and it worked. |
We currently do not have unique fields. |
All good, doing a find on preInsert is good enough. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Notice there is
uniqueItems
documented, and that primary fields are assumed to be unique, but didn't see anything for justunique
fields.It does seem like it may work by searching code, but perhaps some tests + docs would help. I'm going to test to see if it works now as-is, and then could help with some docs.
The text was updated successfully, but these errors were encountered: