MongoDB Driver Java: ‘unknown operator: $project’ on server I have the following java code that creates Bson filters (working as intended).