-
Notifications
You must be signed in to change notification settings - Fork 31
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
aggregate GroovyCastException in version 7.1.0 #353
Comments
the problem is this class: MongoExtensions if I do this the code works:
|
Please attach a sample application. |
@puneetbehl created a simple project |
adding .collect { it.toBsonDocument() } now it works: collection.aggregate( I discovered that last night while migrating the queries from Aggregates to map syntax. but honestly I prefer not to. |
Just to bump this, I spent the morning trying to figure out this same issue with 7.3.0. |
Environment:
Grails 5
GORM 7.1.0
Java 8
Problem:
I'm trying to run this simple code:
the system throws this exception:
NOTE: Just tested in an empty gradle project with the same mongodb-driver-sync version and it works. and in previous grails version (4.0.12) this code works
why Is grails forcing me to use Map syntax?
The text was updated successfully, but these errors were encountered: