I recently upgraded my Java app from using MongoDB client 3 to 4 (the cluster has been on v4 for awehile, finally getting around to the client).
One of my aggregation