Dokumentasi Java cukup jelas, Anda hanya membuat objek BSON agar sesuai dengan rekan JSON masing-masing seperti yang digunakan di shell:
BasicDBObject query = new BasicDBObject("_id", 73);
BasicDBObject fields = new BasicDBObject("goals",
new BasicDBObject( "goal", 4));
BasicDBObject update = new BasicDBObject("$pull",fields);
games.update( query, update );