@nestjs/apollo 14.0.3 → 14.1.0
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/README.md
CHANGED
|
@@ -26,16 +26,16 @@
|
|
|
26
26
|
|
|
27
27
|
## Installation
|
|
28
28
|
|
|
29
|
-
If you are using `express` HTTP engine, install the following packages:
|
|
29
|
+
If you are using the `express` HTTP engine, install the following packages:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
|
-
$ npm i --save @nestjs/graphql @nestjs/apollo apollo
|
|
32
|
+
$ npm i --save @nestjs/graphql @nestjs/apollo @apollo/server @as-integrations/express5 graphql
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
In case of `fastify`,
|
|
35
|
+
In case of `fastify`, install `@as-integrations/fastify` instead of `@as-integrations/express5`:
|
|
36
36
|
|
|
37
37
|
```bash
|
|
38
|
-
$ npm i --save @nestjs/graphql @nestjs/apollo apollo
|
|
38
|
+
$ npm i --save @nestjs/graphql @nestjs/apollo @apollo/server @as-integrations/fastify graphql
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
## Quick Start
|
|
@@ -13,5 +13,6 @@ export declare class ApolloFederationDriver extends ApolloBaseDriver {
|
|
|
13
13
|
constructor(graphqlFederationFactory: GraphQLFederationFactory, modulesContainer: ModulesContainer);
|
|
14
14
|
start(options: ApolloDriverConfig): Promise<void>;
|
|
15
15
|
generateSchema(options: ApolloDriverConfig): Promise<GraphQLSchema>;
|
|
16
|
+
stop(): Promise<void>;
|
|
16
17
|
}
|
|
17
18
|
//# sourceMappingURL=apollo-federation.driver.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apollo-federation.driver.d.ts","sourceRoot":"","sources":["../../lib/drivers/apollo-federation.driver.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAGL,wBAAwB,EAEzB,MAAM,iBAAiB,CA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O,EAAE,kBAAkB,GAAG,OAAO,CAAC,aAAa,CAAC;IAI7D,IAAI;CAIlB"}
|
|
@@ -34,6 +34,10 @@ let ApolloFederationDriver = class ApolloFederationDriver extends ApolloBaseDriv
|
|
|
34
34
|
generateSchema(options) {
|
|
35
35
|
return this.graphqlFederationFactory.generateSchema(options);
|
|
36
36
|
}
|
|
37
|
+
async stop() {
|
|
38
|
+
await this._subscriptionService?.stop();
|
|
39
|
+
await super.stop();
|
|
40
|
+
}
|
|
37
41
|
};
|
|
38
42
|
ApolloFederationDriver = __decorate([
|
|
39
43
|
Injectable(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestjs/apollo",
|
|
3
|
-
"version": "14.0
|
|
3
|
+
"version": "14.1.0",
|
|
4
4
|
"description": "Nest - modern, fast, powerful node.js web framework (@apollo)",
|
|
5
5
|
"author": "Kamil Mysliwiec",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
"@apollo/subgraph": "2.15.1",
|
|
39
39
|
"@as-integrations/express5": "^1.1.2",
|
|
40
40
|
"@as-integrations/fastify": "3.1.0",
|
|
41
|
-
"@nestjs/common": "12.
|
|
42
|
-
"@nestjs/core": "12.
|
|
43
|
-
"@nestjs/platform-express": "12.
|
|
44
|
-
"@nestjs/platform-fastify": "12.
|
|
45
|
-
"@nestjs/testing": "12.
|
|
41
|
+
"@nestjs/common": "12.2.0",
|
|
42
|
+
"@nestjs/core": "12.2.0",
|
|
43
|
+
"@nestjs/platform-express": "12.2.0",
|
|
44
|
+
"@nestjs/platform-fastify": "12.2.0",
|
|
45
|
+
"@nestjs/testing": "12.2.0",
|
|
46
46
|
"apollo-cache-inmemory": "1.6.6",
|
|
47
47
|
"apollo-client": "2.6.10"
|
|
48
48
|
},
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"@apollo/gateway": "^2.0.0",
|
|
56
56
|
"@apollo/server": "^5.0.0",
|
|
57
57
|
"@apollo/subgraph": "^2.0.0",
|
|
58
|
-
"@as-integrations/
|
|
58
|
+
"@as-integrations/express5": "^1.1.2",
|
|
59
|
+
"@as-integrations/fastify": "^3.1.0",
|
|
59
60
|
"@nestjs/common": "^12.0.0",
|
|
60
61
|
"@nestjs/core": "^12.0.0",
|
|
61
62
|
"@nestjs/graphql": "^14.0.0",
|
|
@@ -75,5 +76,5 @@
|
|
|
75
76
|
"optional": true
|
|
76
77
|
}
|
|
77
78
|
},
|
|
78
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "41abe24538f9999a49faeeee6c8d7136f1315a5f"
|
|
79
80
|
}
|