From cae0f929b55d24f6a1961b1a810b9ae1e7380252 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 88110fbd34..cf73ae642b 100644 --- a/pymongo/collection.py +++ b/pymongo/collection.py @@ -1802,6 +1802,7 @@ def aggregate(self, pipeline, **kwargs): command_kwargs = { 'pipeline': pipeline, + 'codec_options': self.codec_options, 'read_preference': self.read_preference, 'tag_sets': self.tag_sets, 'secondary_acceptable_latency_ms': (