-
Notifications
You must be signed in to change notification settings - Fork 98
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
useObjectId == false, but upserts generate ObjectId #97
Comments
@johnoliver This works as intended? |
Hello,I also encountered this problem。Any idea on how to resolve this problem? |
I have submitted a fix for this, although to be honest I actually view this as a bug in mongos driver. It seems inconsistent on their part that inserts call |
This fix causes ans exception if upsert results in insert and _id from query is a JsonObject java.lang.ClassCastException: io.vertx.core.json.JsonObject cannot be cast to java.lang.CharSequence |
The following code still generates an ObjectId for newly added elements, rather than the expected string id. I tried tracing the problem, but lost my way in the callback structures in the libraries.
Using version 3.3.3.
The text was updated successfully, but these errors were encountered: