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; }