The legacy API, which includes QueryBuilder as well as DBCollection, DBCursor, etc, is included in the mongodb-driver-legacy artifact.

http://mongodb.github.io/mongo-java-driver/4.4/apidocs/mongodb-driver-legacy/index.html

Regards,
Jeff

2 Likes