@powerhousedao/reactor-api 1.11.2 → 1.11.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/subgraphs/manager.ts +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerhousedao/reactor-api",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"@types/pg": "^8.11.10",
|
|
21
21
|
"esbuild": "^0.24.0",
|
|
22
22
|
"graphql-tag": "^2.12.6",
|
|
23
|
-
"document-model": "2.13.0",
|
|
24
23
|
"@powerhousedao/scalars": "1.13.0",
|
|
25
|
-
"document-drive": "1.11.8"
|
|
24
|
+
"document-drive": "1.11.8",
|
|
25
|
+
"document-model": "2.13.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@apollo/server": "^4.11.0",
|
package/src/subgraphs/manager.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { ApolloServer } from "@apollo/server";
|
|
2
2
|
import { expressMiddleware } from "@apollo/server/express4";
|
|
3
3
|
import { ApolloServerPluginInlineTraceDisabled } from "@apollo/server/plugin/disabled";
|
|
4
|
+
import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
|
|
4
5
|
import bodyParser from "body-parser";
|
|
5
6
|
import cors from "cors";
|
|
6
7
|
import { IDocumentDriveServer } from "document-drive";
|
|
7
8
|
import express, { IRouter, Router } from "express";
|
|
9
|
+
import { Db } from "src/types";
|
|
8
10
|
import { Context, SubgraphArgs, SubgraphClass } from ".";
|
|
9
11
|
import { createSchema } from "../utils/create-schema";
|
|
10
12
|
import { AnalyticsSubgraph } from "./analytics";
|
|
11
13
|
import { Subgraph } from "./base";
|
|
12
14
|
import { DriveSubgraph } from "./drive";
|
|
13
15
|
import { SystemSubgraph } from "./system";
|
|
14
|
-
import { Db } from "src/types";
|
|
15
|
-
import { IAnalyticsStore } from "@powerhousedao/analytics-engine-core";
|
|
16
16
|
|
|
17
17
|
export class SubgraphManager {
|
|
18
18
|
private reactorRouter: IRouter = Router();
|
|
@@ -34,9 +34,9 @@ export class SubgraphManager {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
// Setup Default subgraphs
|
|
37
|
-
this.
|
|
38
|
-
this.
|
|
39
|
-
this.
|
|
37
|
+
this.registerSubgraph(SystemSubgraph);
|
|
38
|
+
this.registerSubgraph(DriveSubgraph);
|
|
39
|
+
this.registerSubgraph(AnalyticsSubgraph);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
async init() {
|