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

Validation will not be created #1261

Closed
Heaminator opened this issue Sep 10, 2018 · 1 comment
Closed

Validation will not be created #1261

Heaminator opened this issue Sep 10, 2018 · 1 comment
Labels
Milestone

Comments

@Heaminator
Copy link

After trying "@Validation" I found out that maybe this function is broken.
I tried this: @Validation("{ number : { $gt : 10 } }")
But looking then in MongoDB with the command db.getCollectionInfos(). I see no options atm.
Maybe I do something wrong?

@Heaminator
Copy link
Author

Heaminator commented Sep 13, 2018

You should add then to the document the method enableDocumentValidation - then everybody understand, how to create Validations (it took for me about some days)

@evanchooly evanchooly added this to the 1.5.0 milestone Nov 15, 2018
evanchooly added a commit that referenced this issue Nov 28, 2018
fixes #1261

(cherry picked from commit f3ad2fa)
evanchooly added a commit that referenced this issue Mar 10, 2019
fixes #1261

(cherry picked from commit f3ad2fa)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants