@strapi/plugin-graphql 5.8.1 → 5.9.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.
@@ -16,7 +16,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
16
16
  });
17
17
  };
18
18
  const name$1 = "@strapi/plugin-graphql";
19
- const version = "5.8.0";
19
+ const version = "5.8.1";
20
20
  const description = "Adds GraphQL endpoint with default API methods.";
21
21
  const repository = {
22
22
  type: "git",
@@ -71,7 +71,7 @@ const dependencies = {
71
71
  "@koa/cors": "5.0.0",
72
72
  "@strapi/design-system": "2.0.0-rc.14",
73
73
  "@strapi/icons": "2.0.0-rc.14",
74
- "@strapi/utils": "5.8.0",
74
+ "@strapi/utils": "5.8.1",
75
75
  graphql: "^16.8.1",
76
76
  "graphql-depth-limit": "^1.1.0",
77
77
  "graphql-playground-middleware-koa": "^1.6.21",
@@ -84,19 +84,19 @@ const dependencies = {
84
84
  };
85
85
  const devDependencies = {
86
86
  "@strapi/sdk-plugin": "^5.2.0",
87
- "@strapi/strapi": "5.8.0",
88
- "@strapi/types": "5.8.0",
87
+ "@strapi/strapi": "5.8.1",
88
+ "@strapi/types": "5.8.1",
89
89
  "@types/graphql-depth-limit": "1.1.5",
90
90
  "@types/koa-bodyparser": "4.3.12",
91
91
  "@types/koa__cors": "5.0.0",
92
92
  "cross-env": "^7.0.3",
93
- "eslint-config-custom": "5.8.0",
93
+ "eslint-config-custom": "5.8.1",
94
94
  koa: "2.15.2",
95
95
  react: "18.3.1",
96
96
  "react-dom": "18.3.1",
97
97
  "react-router-dom": "6.22.3",
98
98
  "styled-components": "6.1.8",
99
- tsconfig: "5.8.0",
99
+ tsconfig: "5.8.1",
100
100
  typescript: "5.3.2"
101
101
  };
102
102
  const peerDependencies = {
@@ -15,7 +15,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path, segs) => {
15
15
  });
16
16
  };
17
17
  const name$1 = "@strapi/plugin-graphql";
18
- const version = "5.8.0";
18
+ const version = "5.8.1";
19
19
  const description = "Adds GraphQL endpoint with default API methods.";
20
20
  const repository = {
21
21
  type: "git",
@@ -70,7 +70,7 @@ const dependencies = {
70
70
  "@koa/cors": "5.0.0",
71
71
  "@strapi/design-system": "2.0.0-rc.14",
72
72
  "@strapi/icons": "2.0.0-rc.14",
73
- "@strapi/utils": "5.8.0",
73
+ "@strapi/utils": "5.8.1",
74
74
  graphql: "^16.8.1",
75
75
  "graphql-depth-limit": "^1.1.0",
76
76
  "graphql-playground-middleware-koa": "^1.6.21",
@@ -83,19 +83,19 @@ const dependencies = {
83
83
  };
84
84
  const devDependencies = {
85
85
  "@strapi/sdk-plugin": "^5.2.0",
86
- "@strapi/strapi": "5.8.0",
87
- "@strapi/types": "5.8.0",
86
+ "@strapi/strapi": "5.8.1",
87
+ "@strapi/types": "5.8.1",
88
88
  "@types/graphql-depth-limit": "1.1.5",
89
89
  "@types/koa-bodyparser": "4.3.12",
90
90
  "@types/koa__cors": "5.0.0",
91
91
  "cross-env": "^7.0.3",
92
- "eslint-config-custom": "5.8.0",
92
+ "eslint-config-custom": "5.8.1",
93
93
  koa: "2.15.2",
94
94
  react: "18.3.1",
95
95
  "react-dom": "18.3.1",
96
96
  "react-router-dom": "6.22.3",
97
97
  "styled-components": "6.1.8",
98
- tsconfig: "5.8.0",
98
+ tsconfig: "5.8.1",
99
99
  typescript: "5.3.2"
100
100
  };
101
101
  const peerDependencies = {
@@ -2490,7 +2490,8 @@ const associationResolvers = ({ strapi: strapi2 }) => {
2490
2490
  auth
2491
2491
  }
2492
2492
  );
2493
- const data = await strapi2.db?.query(contentTypeUID).load(parent, attributeName, sanitizedQuery);
2493
+ const dbQuery = strapi2.get("query-params").transform(targetUID, sanitizedQuery);
2494
+ const data = await strapi2.db?.query(contentTypeUID).load(parent, attributeName, dbQuery);
2494
2495
  const info = {
2495
2496
  args: sanitizedQuery,
2496
2497
  resourceUID: targetUID
@@ -2568,7 +2569,8 @@ const componentResolvers = ({ strapi: strapi2 }) => ({
2568
2569
  const sanitizedQuery = await strapi2.contentAPI.sanitize.query(transformedArgs, component, {
2569
2570
  auth: ctx?.state?.auth
2570
2571
  });
2571
- return strapi2.db?.query(contentTypeUID).load(parent, attributeName, sanitizedQuery);
2572
+ const dbQuery = strapi2.get("query-params").transform(component.uid, sanitizedQuery);
2573
+ return strapi2.db?.query(contentTypeUID).load(parent, attributeName, dbQuery);
2572
2574
  };
2573
2575
  }
2574
2576
  });
@@ -2468,7 +2468,8 @@ const associationResolvers = ({ strapi: strapi2 }) => {
2468
2468
  auth
2469
2469
  }
2470
2470
  );
2471
- const data = await strapi2.db?.query(contentTypeUID).load(parent, attributeName, sanitizedQuery);
2471
+ const dbQuery = strapi2.get("query-params").transform(targetUID, sanitizedQuery);
2472
+ const data = await strapi2.db?.query(contentTypeUID).load(parent, attributeName, dbQuery);
2472
2473
  const info = {
2473
2474
  args: sanitizedQuery,
2474
2475
  resourceUID: targetUID
@@ -2546,7 +2547,8 @@ const componentResolvers = ({ strapi: strapi2 }) => ({
2546
2547
  const sanitizedQuery = await strapi2.contentAPI.sanitize.query(transformedArgs, component, {
2547
2548
  auth: ctx?.state?.auth
2548
2549
  });
2549
- return strapi2.db?.query(contentTypeUID).load(parent, attributeName, sanitizedQuery);
2550
+ const dbQuery = strapi2.get("query-params").transform(component.uid, sanitizedQuery);
2551
+ return strapi2.db?.query(contentTypeUID).load(parent, attributeName, dbQuery);
2550
2552
  };
2551
2553
  }
2552
2554
  });
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAU,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;+DAI9B;QACD,cAAc,EAAE,SAAS,GAAG,CAAC,WAAW,CAAC;QACzC,aAAa,EAAE,MAAM,CAAC;KACvB,YAGuB,GAAG,QAAQ,GAAG,OAAO,GAAG;;AAVlD,wBA+BG"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../../../../server/src/services/builders/resolvers/component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAU,MAAM,eAAe,CAAC;AAEtD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;qCAEf,OAAO;+DAI9B;QACD,cAAc,EAAE,SAAS,GAAG,CAAC,WAAW,CAAC;QACzC,aAAa,EAAE,MAAM,CAAC;KACvB,YAGuB,GAAG,QAAQ,GAAG,OAAO,GAAG;;AAVlD,wBAiCG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-graphql",
3
- "version": "5.8.1",
3
+ "version": "5.9.0",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -55,7 +55,7 @@
55
55
  "@koa/cors": "5.0.0",
56
56
  "@strapi/design-system": "2.0.0-rc.14",
57
57
  "@strapi/icons": "2.0.0-rc.14",
58
- "@strapi/utils": "5.8.1",
58
+ "@strapi/utils": "5.9.0",
59
59
  "graphql": "^16.8.1",
60
60
  "graphql-depth-limit": "^1.1.0",
61
61
  "graphql-playground-middleware-koa": "^1.6.21",
@@ -68,19 +68,19 @@
68
68
  },
69
69
  "devDependencies": {
70
70
  "@strapi/sdk-plugin": "^5.2.0",
71
- "@strapi/strapi": "5.8.1",
72
- "@strapi/types": "5.8.1",
71
+ "@strapi/strapi": "5.9.0",
72
+ "@strapi/types": "5.9.0",
73
73
  "@types/graphql-depth-limit": "1.1.5",
74
74
  "@types/koa-bodyparser": "4.3.12",
75
75
  "@types/koa__cors": "5.0.0",
76
76
  "cross-env": "^7.0.3",
77
- "eslint-config-custom": "5.8.1",
77
+ "eslint-config-custom": "5.9.0",
78
78
  "koa": "2.15.2",
79
79
  "react": "18.3.1",
80
80
  "react-dom": "18.3.1",
81
81
  "react-router-dom": "6.22.3",
82
82
  "styled-components": "6.1.8",
83
- "tsconfig": "5.8.1",
83
+ "tsconfig": "5.9.0",
84
84
  "typescript": "5.3.2"
85
85
  },
86
86
  "peerDependencies": {