@ldsg/graphql 0.3.23 → 0.3.25

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.
@@ -1 +1 @@
1
- {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAM1C,OAAO,EAGL,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAEjB,qBAAa,eAAgB,SAAQ,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,gBAAgB,EAAE,gBAAgB,CAiBhC;IAEF,gBAAgB;;MA2Dd;CACH"}
1
+ {"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../src/resource.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAM1C,OAAO,EAGL,+BAA+B,EAEhC,MAAM,SAAS,CAAC;AAEjB,qBAAa,eAAgB,SAAQ,QAAQ,CAAC,+BAA+B,CAAC;IAC5E,gBAAgB,EAAE,gBAAgB,CAiBhC;IAEF,gBAAgB;;MAoEd;CACH"}
package/dist/resource.js CHANGED
@@ -27,27 +27,31 @@ class GraphqlResource extends resource_1.Resource {
27
27
  const { resources: peerResources } = getFilteredResources({
28
28
  parentId
29
29
  });
30
- peerResources
31
- .filter((resource) => resource.kind !== 'graphql-resolvers')
30
+ const { resources: childResources } = getFilteredResources({
31
+ parentId: id
32
+ });
33
+ const allResources = [...peerResources, ...childResources];
34
+ allResources
35
+ .filter((resource) => resource.kind !== 'graphql_resolvers')
32
36
  .forEach((resource) => {
33
37
  var _a;
34
38
  (_a = resource.modifyGraphQLSchema) === null || _a === void 0 ? void 0 : _a.call(resource, {
35
39
  schemaComposer
36
40
  });
37
41
  });
38
- peerResources
39
- .filter((resource) => resource.kind === 'graphql-resolvers')
42
+ allResources
43
+ .filter((resource) => resource.kind === 'graphql_resolvers')
40
44
  .forEach((resource) => {
41
45
  var _a;
42
46
  (_a = resource.modifyGraphQLSchema) === null || _a === void 0 ? void 0 : _a.call(resource, {
43
47
  schemaComposer
44
48
  });
45
49
  });
46
- const { resources: childResources } = getFilteredResources({
50
+ const { resources: childMiddlewareResources } = getFilteredResources({
47
51
  parentId: id
48
52
  });
49
53
  const graphqlMiddlewareInfos = [];
50
- childResources.forEach((resource) => {
54
+ childMiddlewareResources.forEach((resource) => {
51
55
  var _a;
52
56
  const getGraphqlMiddlewareInfoRes = (_a = resource.getGraphqlMiddlewareInfo) === null || _a === void 0 ? void 0 : _a.call(resource);
53
57
  if (getGraphqlMiddlewareInfoRes) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ldsg/graphql",
3
- "version": "0.3.23",
3
+ "version": "0.3.25",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",
@@ -15,9 +15,9 @@
15
15
  "graphql-compose": "^9.1.0",
16
16
  "graphql-middleware": "^6.1.35",
17
17
  "graphql-yoga": "^5.13.4",
18
- "@ldsg/handler": "0.3.23",
19
- "@ldsg/resource": "0.3.23",
20
- "@ldsg/resource-definition": "0.3.23"
18
+ "@ldsg/handler": "0.3.25",
19
+ "@ldsg/resource-definition": "0.3.25",
20
+ "@ldsg/resource": "0.3.25"
21
21
  },
22
22
  "devDependencies": {
23
23
  "@types/jest": "^29.5.2",
@@ -27,8 +27,8 @@
27
27
  "ts-jest": "^29.1.5",
28
28
  "ts-node": "^10.9.2",
29
29
  "typescript": "^5.8.3",
30
- "@ldsg/application": "0.3.23",
31
- "@ldsg/types": "0.3.23"
30
+ "@ldsg/application": "0.3.25",
31
+ "@ldsg/types": "0.3.25"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
@@ -36,6 +36,6 @@
36
36
  "scripts": {
37
37
  "build": "tsc --project tsconfig.build.json",
38
38
  "clean": "rm -rf dist",
39
- "test": "jest"
39
+ "test": "jest --passWithNoTests"
40
40
  }
41
41
  }