MongoTemplate pull subdocument
It seems this works:
this.mongoTemplate.updateMulti(new Query(),
new Update().pull("tests", Query.query(Criteria.where("experiment.$id").is("MyExperiment1"))), USERS_COLLECTION_NAME);
It seems this works:
this.mongoTemplate.updateMulti(new Query(),
new Update().pull("tests", Query.query(Criteria.where("experiment.$id").is("MyExperiment1"))), USERS_COLLECTION_NAME);