@inversifyjs/apollo-core 0.4.0 → 0.6.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.
Files changed (25) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/lib/esm/apollo/calcullations/buildDocumentNodeFromTypeSource.d.ts +4 -0
  3. package/lib/esm/apollo/calcullations/buildDocumentNodeFromTypeSource.d.ts.map +1 -0
  4. package/lib/esm/apollo/calcullations/buildDocumentNodeFromTypeSource.js +8 -0
  5. package/lib/esm/apollo/calcullations/buildDocumentNodeFromTypeSource.js.map +1 -0
  6. package/lib/esm/apollo/models/ApolloServerContainerModuleOptions.d.ts +4 -0
  7. package/lib/esm/apollo/models/ApolloServerContainerModuleOptions.d.ts.map +1 -0
  8. package/lib/esm/apollo/models/ApolloServerContainerModuleOptions.js +2 -0
  9. package/lib/esm/apollo/models/ApolloServerContainerModuleOptions.js.map +1 -0
  10. package/lib/esm/apollo/models/inversifyApolloProviderServiceIdentifier.d.ts +1 -1
  11. package/lib/esm/apollo/models/inversifyApolloProviderServiceIdentifier.d.ts.map +1 -1
  12. package/lib/esm/apollo/models/inversifyApolloProviderServiceIdentifier.js.map +1 -1
  13. package/lib/esm/apollo/modules/ApolloServerContainerModule.d.ts +2 -1
  14. package/lib/esm/apollo/modules/ApolloServerContainerModule.d.ts.map +1 -1
  15. package/lib/esm/apollo/modules/ApolloServerContainerModule.js +24 -14
  16. package/lib/esm/apollo/modules/ApolloServerContainerModule.js.map +1 -1
  17. package/lib/esm/apollo/modules/InversifyApolloProvider.d.ts +2 -3
  18. package/lib/esm/apollo/modules/InversifyApolloProvider.d.ts.map +1 -1
  19. package/lib/esm/index.d.ts +1 -0
  20. package/lib/esm/index.d.ts.map +1 -1
  21. package/package.json +3 -1
  22. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts +0 -9
  23. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.d.ts.map +0 -1
  24. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js +0 -19
  25. package/lib/esm/apollo/modules/InversifyApolloProviderImplementation.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @inversifyjs/apollo-core
2
2
 
3
+ ## 0.6.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Updated `ApolloServerContainerModule` with `ApolloServerContainerModuleOptions`
8
+
9
+ ## 0.5.0
10
+
11
+ ### Minor Changes
12
+
13
+ - Updated `InversifyApolloProvider` with generic type
14
+
3
15
  ## 0.4.0
4
16
 
5
17
  ### Minor Changes
@@ -0,0 +1,4 @@
1
+ import { type TypeSource } from '@graphql-tools/utils';
2
+ import { type DocumentNode } from 'graphql';
3
+ export declare function buildDocumentNodeFromTypeSource(typeDefs: TypeSource): DocumentNode;
4
+ //# sourceMappingURL=buildDocumentNodeFromTypeSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDocumentNodeFromTypeSource.d.ts","sourceRoot":"","sources":["../../../../src/apollo/calcullations/buildDocumentNodeFromTypeSource.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,KAAK,YAAY,EAAS,MAAM,SAAS,CAAC;AAEnD,wBAAgB,+BAA+B,CAC7C,QAAQ,EAAE,UAAU,GACnB,YAAY,CAId"}
@@ -0,0 +1,8 @@
1
+ import { mergeTypeDefs } from '@graphql-tools/merge';
2
+ import { parse } from 'graphql';
3
+ export function buildDocumentNodeFromTypeSource(typeDefs) {
4
+ return typeof typeDefs === 'string'
5
+ ? parse(typeDefs)
6
+ : mergeTypeDefs(typeDefs);
7
+ }
8
+ //# sourceMappingURL=buildDocumentNodeFromTypeSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildDocumentNodeFromTypeSource.js","sourceRoot":"","sources":["../../../../src/apollo/calcullations/buildDocumentNodeFromTypeSource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,OAAO,EAAqB,KAAK,EAAE,MAAM,SAAS,CAAC;AAEnD,MAAM,UAAU,+BAA+B,CAC7C,QAAoB;IAEpB,OAAO,OAAO,QAAQ,KAAK,QAAQ;QACjC,CAAC,CAAC,KAAK,CAAC,QAAQ,CAAC;QACjB,CAAC,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAC9B,CAAC"}
@@ -0,0 +1,4 @@
1
+ export interface ApolloServerContainerModuleOptions {
2
+ isSubgraph?: boolean;
3
+ }
4
+ //# sourceMappingURL=ApolloServerContainerModuleOptions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApolloServerContainerModuleOptions.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloServerContainerModuleOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kCAAkC;IACjD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ApolloServerContainerModuleOptions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ApolloServerContainerModuleOptions.js","sourceRoot":"","sources":["../../../../src/apollo/models/ApolloServerContainerModuleOptions.ts"],"names":[],"mappings":""}
@@ -1,4 +1,4 @@
1
1
  import { ServiceIdentifier } from 'inversify';
2
2
  import { type InversifyApolloProvider } from '../modules/InversifyApolloProvider.js';
3
- export declare const inversifyApolloProviderServiceIdentifier: ServiceIdentifier<InversifyApolloProvider>;
3
+ export declare const inversifyApolloProviderServiceIdentifier: ServiceIdentifier<InversifyApolloProvider<any>>;
4
4
  //# sourceMappingURL=inversifyApolloProviderServiceIdentifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"inversifyApolloProviderServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAAC,uBAAuB,CAChC,CAAC"}
1
+ {"version":3,"file":"inversifyApolloProviderServiceIdentifier.d.ts","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAE9C,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,uCAAuC,CAAC;AAErF,eAAO,MAAM,wCAAwC,EAAE,iBAAiB,CAEtE,uBAAuB,CAAC,GAAG,CAAC,CACoC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"inversifyApolloProviderServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,wCAAwC,GACnD,MAAM,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC"}
1
+ {"version":3,"file":"inversifyApolloProviderServiceIdentifier.js","sourceRoot":"","sources":["../../../../src/apollo/models/inversifyApolloProviderServiceIdentifier.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,wCAAwC,GAGjD,MAAM,CAAC,GAAG,CAAC,kDAAkD,CAAC,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import { ContainerModule, type ContainerModuleLoadOptions } from 'inversify';
2
+ import { ApolloServerContainerModuleOptions } from '../models/ApolloServerContainerModuleOptions.js';
2
3
  export declare class ApolloServerContainerModule extends ContainerModule {
3
- constructor(load?: ((options: ContainerModuleLoadOptions) => void | Promise<void>) | undefined);
4
+ constructor(load?: ((options: ContainerModuleLoadOptions) => void | Promise<void>) | undefined, containerModuleOptions?: ApolloServerContainerModuleOptions);
4
5
  }
5
6
  //# sourceMappingURL=ApolloServerContainerModule.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,eAAe,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAU7E,qBAAa,2BAA4B,SAAQ,eAAe;gBAE5D,IAAI,CAAC,EACD,CAAC,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAC/D,SAAS;CAgDhB"}
1
+ {"version":3,"file":"ApolloServerContainerModule.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,KAAK,0BAA0B,EAAE,MAAM,WAAW,CAAC;AAG7E,OAAO,EAAE,kCAAkC,EAAE,MAAM,iDAAiD,CAAC;AAOrG,qBAAa,2BAA4B,SAAQ,eAAe;gBAE5D,IAAI,CAAC,EACD,CAAC,CAAC,OAAO,EAAE,0BAA0B,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,GAC/D,SAAS,EACb,sBAAsB,CAAC,EAAE,kCAAkC;CA6D9D"}
@@ -1,23 +1,37 @@
1
1
  import { ApolloServer } from '@apollo/server';
2
+ import { buildSubgraphSchema } from '@apollo/subgraph';
2
3
  import { makeExecutableSchema } from '@graphql-tools/schema';
3
4
  import { ContainerModule } from 'inversify';
5
+ import { buildDocumentNodeFromTypeSource } from '../calcullations/buildDocumentNodeFromTypeSource.js';
4
6
  import { apolloServerGraphqlServiceIdentifier } from '../models/apolloServerGraphqlServiceIdentifier.js';
5
7
  import { apolloServerPluginsServiceIdentifier } from '../models/apolloServerPluginsServiceIdentifier.js';
6
8
  import { apolloServerResolversServiceIdentifier } from '../models/apolloServerResolversServiceIdentifier.js';
7
9
  import { apolloServerServiceIdentifier } from '../models/apolloServerServiceIdentifier.js';
8
10
  import { apolloServerTypeDefsServiceIdentifier } from '../models/apolloServerTypeDefsServiceIdentifier.js';
9
- import { inversifyApolloProviderServiceIdentifier } from '../models/inversifyApolloProviderServiceIdentifier.js';
10
- import { InversifyApolloProviderImplementation } from './InversifyApolloProviderImplementation.js';
11
11
  export class ApolloServerContainerModule extends ContainerModule {
12
- constructor(load) {
12
+ constructor(load, containerModuleOptions) {
13
13
  super((options) => {
14
- options
15
- .bind(apolloServerGraphqlServiceIdentifier)
16
- .toResolvedValue((resolvers, typeDefs) => makeExecutableSchema({ resolvers, typeDefs }), [
17
- apolloServerResolversServiceIdentifier,
18
- apolloServerTypeDefsServiceIdentifier,
19
- ])
20
- .inSingletonScope();
14
+ if (containerModuleOptions?.isSubgraph === true) {
15
+ options
16
+ .bind(apolloServerGraphqlServiceIdentifier)
17
+ .toResolvedValue((resolvers, typeDefs) => buildSubgraphSchema({
18
+ resolvers: resolvers,
19
+ typeDefs: buildDocumentNodeFromTypeSource(typeDefs),
20
+ }), [
21
+ apolloServerResolversServiceIdentifier,
22
+ apolloServerTypeDefsServiceIdentifier,
23
+ ])
24
+ .inSingletonScope();
25
+ }
26
+ else {
27
+ options
28
+ .bind(apolloServerGraphqlServiceIdentifier)
29
+ .toResolvedValue((resolvers, typeDefs) => makeExecutableSchema({ resolvers, typeDefs }), [
30
+ apolloServerResolversServiceIdentifier,
31
+ apolloServerTypeDefsServiceIdentifier,
32
+ ])
33
+ .inSingletonScope();
34
+ }
21
35
  options
22
36
  .bind(apolloServerServiceIdentifier)
23
37
  .toResolvedValue(async (plugins, schema) => {
@@ -35,10 +49,6 @@ export class ApolloServerContainerModule extends ContainerModule {
35
49
  apolloServerGraphqlServiceIdentifier,
36
50
  ])
37
51
  .inSingletonScope();
38
- options
39
- .bind(inversifyApolloProviderServiceIdentifier)
40
- .to(InversifyApolloProviderImplementation)
41
- .inSingletonScope();
42
52
  return load?.(options);
43
53
  });
44
54
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ApolloServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAmC,MAAM,WAAW,CAAC;AAE7E,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;AAC3G,OAAO,EAAE,wCAAwC,EAAE,MAAM,uDAAuD,CAAC;AACjH,OAAO,EAAE,qCAAqC,EAAE,MAAM,4CAA4C,CAAC;AAEnG,MAAM,OAAO,2BAA4B,SAAQ,eAAe;IAC9D,YACE,IAEa;QAEb,KAAK,CAAC,CAAC,OAAmC,EAAwB,EAAE;YAClE,OAAO;iBACJ,IAAI,CAAC,oCAAoC,CAAC;iBAC1C,eAAe,CACd,CAAC,SAAqB,EAAE,QAAoB,EAAiB,EAAE,CAC7D,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAC/C;gBACE,sCAAsC;gBACtC,qCAAqC;aACtC,CACF;iBACA,gBAAgB,EAAE,CAAC;YACtB,OAAO;iBACJ,IAAI,CAAC,6BAA6B,CAAC;iBACnC,eAAe,CACd,KAAK,EACH,OAA+B,EAC/B,MAAqB,EACE,EAAE;gBACzB,MAAM,YAAY,GAAiB,IAAI,YAAY,CAAC;oBAClD,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;oBACvB,MAAM;iBACP,CAAC,CAAC;gBAEH,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;gBAE3B,OAAO,YAAY,CAAC;YACtB,CAAC,EACD;gBACE;oBACE,UAAU,EAAE,IAAI;oBAChB,iBAAiB,EAAE,oCAAoC;iBACxD;gBACD,oCAAoC;aACrC,CACF;iBACA,gBAAgB,EAAE,CAAC;YAEtB,OAAO;iBACJ,IAAI,CAAC,wCAAwC,CAAC;iBAC9C,EAAE,CAAC,qCAAqC,CAAC;iBACzC,gBAAgB,EAAE,CAAC;YAEtB,OAAO,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"ApolloServerContainerModule.js","sourceRoot":"","sources":["../../../../src/apollo/modules/ApolloServerContainerModule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAA2B,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,OAAO,EAAE,eAAe,EAAmC,MAAM,WAAW,CAAC;AAE7E,OAAO,EAAE,+BAA+B,EAAE,MAAM,qDAAqD,CAAC;AAEtG,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,oCAAoC,EAAE,MAAM,mDAAmD,CAAC;AACzG,OAAO,EAAE,sCAAsC,EAAE,MAAM,qDAAqD,CAAC;AAC7G,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,qCAAqC,EAAE,MAAM,oDAAoD,CAAC;AAE3G,MAAM,OAAO,2BAA4B,SAAQ,eAAe;IAC9D,YACE,IAEa,EACb,sBAA2D;QAE3D,KAAK,CAAC,CAAC,OAAmC,EAAwB,EAAE;YAClE,IAAI,sBAAsB,EAAE,UAAU,KAAK,IAAI,EAAE,CAAC;gBAChD,OAAO;qBACJ,IAAI,CAAC,oCAAoC,CAAC;qBAC1C,eAAe,CACd,CAAC,SAAqB,EAAE,QAAoB,EAAiB,EAAE,CAC7D,mBAAmB,CAAC;oBAClB,SAAS,EAAE,SAAwC;oBACnD,QAAQ,EAAE,+BAA+B,CAAC,QAAQ,CAAC;iBACpD,CAAC,EACJ;oBACE,sCAAsC;oBACtC,qCAAqC;iBACtC,CACF;qBACA,gBAAgB,EAAE,CAAC;YACxB,CAAC;iBAAM,CAAC;gBACN,OAAO;qBACJ,IAAI,CAAC,oCAAoC,CAAC;qBAC1C,eAAe,CACd,CAAC,SAAqB,EAAE,QAAoB,EAAiB,EAAE,CAC7D,oBAAoB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,EAC/C;oBACE,sCAAsC;oBACtC,qCAAqC;iBACtC,CACF;qBACA,gBAAgB,EAAE,CAAC;YACxB,CAAC;YAED,OAAO;iBACJ,IAAI,CAAC,6BAA6B,CAAC;iBACnC,eAAe,CACd,KAAK,EACH,OAA+B,EAC/B,MAAqB,EACE,EAAE;gBACzB,MAAM,YAAY,GAAiB,IAAI,YAAY,CAAC;oBAClD,OAAO,EAAE,OAAO,CAAC,IAAI,EAAE;oBACvB,MAAM;iBACP,CAAC,CAAC;gBAEH,MAAM,YAAY,CAAC,KAAK,EAAE,CAAC;gBAE3B,OAAO,YAAY,CAAC;YACtB,CAAC,EACD;gBACE;oBACE,UAAU,EAAE,IAAI;oBAChB,iBAAiB,EAAE,oCAAoC;iBACxD;gBACD,oCAAoC;aACrC,CACF;iBACA,gBAAgB,EAAE,CAAC;YAEtB,OAAO,IAAI,EAAE,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,7 +1,6 @@
1
- import type http from 'node:http';
2
1
  import { type ApolloServer } from '@apollo/server';
3
- export interface InversifyApolloProvider {
2
+ export interface InversifyApolloProvider<TServer> {
4
3
  readonly apolloServer: ApolloServer<any>;
5
- readonly httpServer: http.Server;
4
+ readonly server: TServer;
6
5
  }
7
6
  //# sourceMappingURL=InversifyApolloProvider.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"InversifyApolloProvider.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProvider.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,uBAAuB;IAEtC,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAEzC,QAAQ,CAAC,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC;CAClC"}
1
+ {"version":3,"file":"InversifyApolloProvider.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProvider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAEnD,MAAM,WAAW,uBAAuB,CAAC,OAAO;IAE9C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,CAAC;IAEzC,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B"}
@@ -7,5 +7,6 @@ export { apolloServerServiceIdentifier } from './apollo/models/apolloServerServi
7
7
  export { httpServerServiceIdentifier } from './apollo/models/httpServerServiceIdentifier.js';
8
8
  export { inversifyApolloProviderServiceIdentifier } from './apollo/models/inversifyApolloProviderServiceIdentifier.js';
9
9
  export { ApolloServerContainerModule } from './apollo/modules/ApolloServerContainerModule.js';
10
+ export { type ApolloServerContainerModuleOptions } from './apollo/models/ApolloServerContainerModuleOptions.js';
10
11
  export { type InversifyApolloProvider } from './apollo/modules/InversifyApolloProvider.js';
11
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,sCAAsC,EAAE,MAAM,2DAA2D,CAAC;AACnH,OAAO,EAAE,qCAAqC,EAAE,MAAM,0DAA0D,CAAC;AACjH,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AACvH,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAE9F,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,6CAA6C,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,oCAAoC,EAAE,MAAM,yDAAyD,CAAC;AAC/G,OAAO,EAAE,sCAAsC,EAAE,MAAM,2DAA2D,CAAC;AACnH,OAAO,EAAE,qCAAqC,EAAE,MAAM,0DAA0D,CAAC;AACjH,OAAO,EAAE,6BAA6B,EAAE,MAAM,kDAAkD,CAAC;AACjG,OAAO,EAAE,2BAA2B,EAAE,MAAM,gDAAgD,CAAC;AAC7F,OAAO,EAAE,wCAAwC,EAAE,MAAM,6DAA6D,CAAC;AACvH,OAAO,EAAE,2BAA2B,EAAE,MAAM,iDAAiD,CAAC;AAE9F,OAAO,EAAE,KAAK,kCAAkC,EAAE,MAAM,uDAAuD,CAAC;AAChH,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,6CAA6C,CAAC"}
package/package.json CHANGED
@@ -5,6 +5,7 @@
5
5
  },
6
6
  "description": "InversifyJs GraphQL Apollo core package",
7
7
  "dependencies": {
8
+ "@graphql-tools/merge": "9.1.6",
8
9
  "@graphql-tools/schema": "^10.0.30"
9
10
  },
10
11
  "devDependencies": {
@@ -40,6 +41,7 @@
40
41
  "name": "@inversifyjs/apollo-core",
41
42
  "peerDependencies": {
42
43
  "@apollo/server": "^5.2.0",
44
+ "@apollo/subgraph": "^2.12.2",
43
45
  "inversify": "^7.10.8"
44
46
  },
45
47
  "publishConfig": {
@@ -50,7 +52,7 @@
50
52
  "url": "git+https://github.com/inversify/graphql.git"
51
53
  },
52
54
  "type": "module",
53
- "version": "0.4.0",
55
+ "version": "0.6.0",
54
56
  "scripts": {
55
57
  "build": "tsc",
56
58
  "build:clean": "rimraf lib",
@@ -1,9 +0,0 @@
1
- import type http from 'node:http';
2
- import { type ApolloServer } from '@apollo/server';
3
- import { type InversifyApolloProvider } from './InversifyApolloProvider.js';
4
- export declare class InversifyApolloProviderImplementation implements InversifyApolloProvider {
5
- readonly apolloServer: ApolloServer<any>;
6
- readonly httpServer: http.Server;
7
- constructor(apolloServer: ApolloServer<any>, httpServer: http.Server);
8
- }
9
- //# sourceMappingURL=InversifyApolloProviderImplementation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InversifyApolloProviderImplementation.d.ts","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProviderImplementation.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAElC,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAKnD,OAAO,EAAE,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAE5E,qBACa,qCAAsC,YAAW,uBAAuB;aAGjE,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC;aAE/B,UAAU,EAAE,IAAI,CAAC,MAAM;gBAFvB,YAAY,EAAE,YAAY,CAAC,GAAG,CAAC,EAE/B,UAAU,EAAE,IAAI,CAAC,MAAM;CAE1C"}
@@ -1,19 +0,0 @@
1
- import { __decorate, __param } from "tslib";
2
- import { inject, injectable } from 'inversify';
3
- import { apolloServerServiceIdentifier } from '../models/apolloServerServiceIdentifier.js';
4
- import { httpServerServiceIdentifier } from '../models/httpServerServiceIdentifier.js';
5
- let InversifyApolloProviderImplementation = class InversifyApolloProviderImplementation {
6
- apolloServer;
7
- httpServer;
8
- constructor(apolloServer, httpServer) {
9
- this.apolloServer = apolloServer;
10
- this.httpServer = httpServer;
11
- }
12
- };
13
- InversifyApolloProviderImplementation = __decorate([
14
- injectable(),
15
- __param(0, inject(apolloServerServiceIdentifier)),
16
- __param(1, inject(httpServerServiceIdentifier))
17
- ], InversifyApolloProviderImplementation);
18
- export { InversifyApolloProviderImplementation };
19
- //# sourceMappingURL=InversifyApolloProviderImplementation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"InversifyApolloProviderImplementation.js","sourceRoot":"","sources":["../../../../src/apollo/modules/InversifyApolloProviderImplementation.ts"],"names":[],"mappings":";AAGA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE/C,OAAO,EAAE,6BAA6B,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AAIhF,IAAM,qCAAqC,GAA3C,MAAM,qCAAqC;IAG9B;IAEA;IAJlB,YAEkB,YAA+B,EAE/B,UAAuB;QAFvB,iBAAY,GAAZ,YAAY,CAAmB;QAE/B,eAAU,GAAV,UAAU,CAAa;IACtC,CAAC;CACL,CAAA;AAPY,qCAAqC;IADjD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,6BAA6B,CAAC,CAAA;IAErC,WAAA,MAAM,CAAC,2BAA2B,CAAC,CAAA;GAJ3B,qCAAqC,CAOjD"}