Closed darrenweb closed 1 year ago
Most probably the client is configured with useObjectId set to true.
useObjectId
true
See https://vertx.io/docs/vertx-mongo-client/java/#_configuring_the_client
When saving data to db, the generated default _id value type is string, not ObjectId. Did you design this on purpose? Or is it a bug? Below is my code.
mongoClient.save("test", new JsonObject().put("v", "vertx"), mongo -> {});