You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
´´´
com.mongodb.MongoCommandException: Command failed with error -1: 'Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')' on server 127.0.0.1:57611. The full response is {"$err": "Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')", "errmsg": "Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')", "ok": 0}
´´´
The text was updated successfully, but these errors were encountered:
weswes
changed the title
Is bulkwrite with aggregation pipeline is supported ?
Is bulkwrite with aggregation pipeline supported ?
Oct 11, 2023
According to the MongoDB update command reference, in 4.2 this was changed to support either a document or a pipeline, but mongo-java-server only supports a single document.
It seems not supported as I get this error:
´´´
com.mongodb.MongoCommandException: Command failed with error -1: 'Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')' on server 127.0.0.1:57611. The full response is {"$err": "Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')", "errmsg": "Unknown error: class java.util.ArrayList cannot be cast to class de.bwaldvogel.mongo.bson.Document (java.util.ArrayList is in module java.base of loader 'bootstrap'; de.bwaldvogel.mongo.bson.Document is in unnamed module of loader 'app')", "ok": 0}
´´´
The text was updated successfully, but these errors were encountered: