From 5fd79cd307747d47685b37ea8d5cab31513ea6d9 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 11 May 2021 16:56:53 +0200 Subject: [PATCH] fix(mongodb): collection-statistics mode - filter on collection only (#2787) --- database/mongodb/custom/driver.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/mongodb/custom/driver.pm b/database/mongodb/custom/driver.pm index c0b78aea8..f627c84e0 100644 --- a/database/mongodb/custom/driver.pm +++ b/database/mongodb/custom/driver.pm @@ -174,7 +174,7 @@ sub list_collections { } my $db = $self->{client}->get_database($options{database}); - my @cls = $db->collection_names; + my @cls = $db->collection_names({ type => 'collection' }); return \@cls; }