Skip to content

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