perspectives: mongo join works

This commit is contained in:
Jan Prochazka
2022-10-02 09:44:52 +02:00
parent da5dd7ac62
commit f60e1190c8
5 changed files with 196 additions and 117 deletions

View File

@@ -28,7 +28,6 @@
import {
ChangePerspectiveConfigFunc,
extractPerspectiveDatabases,
PerspectiveCollectionNode,
PerspectiveConfig,
PerspectiveDataProvider,
PerspectiveTableNode,
@@ -142,20 +141,9 @@
$: dataProvider = new PerspectiveDataProvider(cache, loader, $dataPatterns);
$: root =
tableInfo || viewInfo
tableInfo || viewInfo || collectionInfo
? new PerspectiveTableNode(
tableInfo || viewInfo,
$dbInfos,
config,
setConfig,
dataProvider,
{ conid, database },
null,
config.rootDesignerId
)
: collectionInfo
? new PerspectiveCollectionNode(
collectionInfo,
tableInfo || viewInfo || collectionInfo,
$dbInfos,
config,
setConfig,