why java mongodb driver update a value can't start with $
UpdateOptions options = new UpdateOptions().upsert(true); Bson filters = Filters.eq("id", 123456); List<Bson> bsonArrayList = new ArrayList<>(); bsonArrayList.add(Updates.set("income", "$300k")); UpdateResult updateResult = mongoExe.updateOne(filters, bsonArrayList, options); The field name is income, value is $200k. It can't update until I delete the $ bsonArrayList.add(Updates.set("income",…