Skip to content
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

feature request: unique contraint #2

Closed
jamesdwilson opened this issue Aug 8, 2013 · 3 comments
Closed

feature request: unique contraint #2

jamesdwilson opened this issue Aug 8, 2013 · 3 comments

Comments

@jamesdwilson
Copy link

this would be really nice to have and pretty simple implement i am guessing.

please make unique: true a reality

@aldeed
Copy link
Collaborator

aldeed commented Aug 8, 2013

At a collection level, you can ensure uniqueness with a unique index in mongo, but minimongo doesn't have indexes, so I can see where it would be useful to have a check for uniqueness on the client as part of collection2. It's a bit different from the other types of validation because it can't be done without knowledge of what's in the collection, which means it can't be done by the simple-schema package. I think it should be possible to add to collection2, though, so I'll see about doing that.

@aldeed aldeed closed this as completed in 417694e Aug 21, 2013
@aldeed
Copy link
Collaborator

aldeed commented Aug 21, 2013

This is now a reality.

@jamesdwilson
Copy link
Author

sweeet!!!!!!! TYTTY TYTYTYTY

James Wilson

On Wed, Aug 21, 2013 at 4:23 PM, Eric Dobbertin notifications@github.comwrote:

This is now a reality.


Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-23051497
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants