| Hi Sanne Grinovero ! In theory ... We can't use BSON reader and writer API because ... we use http://api.mongodb.com/java/3.0/com/mongodb/client/MongoCollection.html . MongoCollection uses Document not JSON. Document is workhorse of Mongo 3.x API As I see at http://mongodb.github.io/mongo-java-driver/3.5/bson/codecs/ comment : In the last section we saw how to use the BsonReader and BsonWriter API to read and write BSON documents. But writing code at that low a level is tedious and error-prone, so in practice these algorithms are packaged in implementations of the Codec interface. In this way .... Will we move to low level API ? If yes ... then we need specified low level api for searching, CRUD . it is too hard As variant we can use asynchronous API. See example at http://mongodb.github.io/mongo-java-driver/3.5/driver-async/tutorials/perform-read-operations/ . What do you think? |