}
MongoCollection<JsonObject> mongoCollection = getCollection(collection);
return mongoCollection.distinct(fieldName, resultClass);
}
private JsonObject encodeKeyWhenUseObjectId(JsonObject json) {
<BUG>if (useObjectId && json.containsKey(ID_FIELD) && json.getValue(ID_FIELD) instanceof String) {
String idString = json.getString(ID_FIELD);
if (ObjectId.isValid(idString)) {
json.put(ID_FIELD, new JsonObject().put(JsonObjectCodec.OID_FIELD, idString));</BUG>
}

}
@Deprecated @Override
public io.vertx.ext.mongo.MongoClient removeOneWithOptions(String collection, JsonObject query, WriteOption writeOption, Handler<AsyncResult<Void>> resultHandler) {
removeDocumentWithOptions(collection, query, writeOption, toVoidAsyncResult(resultHandler));
return this;
}
