From 640e184e00e66a28bc5549d2b24bfb1c769961d4 Mon Sep 17 00:00:00 2001 From: Alex Ganose Date: Tue, 24 May 2022 16:08:16 +0100 Subject: [PATCH] Fix gridfs URI store --- src/maggma/stores/gridfs.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/maggma/stores/gridfs.py b/src/maggma/stores/gridfs.py index db5d574d1..6a7c9f473 100644 --- a/src/maggma/stores/gridfs.py +++ b/src/maggma/stores/gridfs.py @@ -467,6 +467,8 @@ def __init__( compression: bool = False, ensure_metadata: bool = False, searchable_fields: List[str] = None, + auth_source: Optional[str] = None, + mongoclient_kwargs: Optional[Dict] = None, **kwargs, ): """ @@ -499,6 +501,7 @@ def __init__( self.ensure_metadata = ensure_metadata self.searchable_fields = [] if searchable_fields is None else searchable_fields self.kwargs = kwargs + self.mongoclient_kwargs = mongoclient_kwargs or {} if "key" not in kwargs: kwargs["key"] = "_id"