Merge pull request #853 from jacobokeeffe-ow/fix/851-mongo-error-collstats

Fix 851: Loading mongo db structure fails when $collstats not supported
This commit is contained in:
Jan Prochazka
2024-07-11 16:00:59 +02:00
committed by GitHub

View File

@@ -33,7 +33,7 @@ class Analyser extends DatabaseAnalyser {
collections: [
...collections.map((x, index) => ({
pureName: x.name,
tableRowCount: stats[index].count,
tableRowCount: stats[index]?.count,
})),
...views.map((x, index) => ({
pureName: x.name,