There was a change in MongoDB version 3.6. Per MongoDB docs (https://docs.mongodb.com/manual/reference/command/aggregate/#dbcmd.aggregate): So, you just need to add an empty "cursor" document. Also, pipeline needs to be an array. So, your query in JR needs to be similar to the following example: { "runCommand": { "aggregate" : "{collection name}", "pipeline" : [ { "$match": { ... } }, { ... } ], "cursor": {} }}[/code]