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

Now correctly handles UniqueDocument criteria which are references to other Documents #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Now correctly handles UniqueDocument criteria which are references to other Documents #12

wants to merge 1 commit into from

Conversation

sampart
Copy link

@sampart sampart commented Jan 30, 2013

Without this, you'll see the Mongo error 'zero-length keys are not allowed, did you use $ with double quotes?' as it doesn't know how to handle the document.

… other Documents.

Without this, you'll see the Mongo error 'zero-length keys are not allowed, did you use $ with double quotes?' as it doesn't know how to handle the document.
@pablodip
Copy link
Contributor

I guess you want this to validate references. Why don't you use the reference field?

@sampart
Copy link
Author

sampart commented Feb 26, 2013

Do you mean put the validation on the reference field rather than the document field? I'm pretty sure I tried that without success, but I can't remember the details!

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

Successfully merging this pull request may close these issues.

2 participants