From 65c0aed6102ef656cc2b735ca0b6d458f00dc6ec Mon Sep 17 00:00:00 2001 From: Daniel Playfair Cal Date: Fri, 4 Dec 2015 16:49:50 +1100 Subject: [PATCH] Use codec options in aggregate command --- pymongo/collection.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pymongo/collection.py b/pymongo/collection.py index 88110fbd3..cf73ae642 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1802,6 +1802,7 @@ class Collection(common.BaseObject): command_kwargs = { 'pipeline': pipeline, + 'codec_options': self.codec_options, 'read_preference': self.read_preference, 'tag_sets': self.tag_sets, 'secondary_acceptable_latency_ms': (