@strapi/plugin-graphql 5.0.0-beta.2 → 5.0.0-beta.4
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/dist/_chunks/{dk-KmLnUoJC.mjs → dk-BbJCmDw6.mjs} +1 -1
- package/dist/_chunks/dk-BbJCmDw6.mjs.map +1 -0
- package/dist/_chunks/{dk-SLrLqAtl.js → dk-C9NcSzyg.js} +1 -1
- package/dist/_chunks/dk-C9NcSzyg.js.map +1 -0
- package/dist/_chunks/{en-WmmC2MW8.js → en-BiKpmhCU.js} +1 -1
- package/dist/_chunks/en-BiKpmhCU.js.map +1 -0
- package/dist/_chunks/{en-A16mqbIV.mjs → en-YIQYYlvv.mjs} +1 -1
- package/dist/_chunks/en-YIQYYlvv.mjs.map +1 -0
- package/dist/_chunks/{es-_xZ14QXK.mjs → es-BbsZ5Fh0.mjs} +1 -1
- package/dist/_chunks/es-BbsZ5Fh0.mjs.map +1 -0
- package/dist/_chunks/{es-4tl6ikyU.js → es-DE22V9D4.js} +1 -1
- package/dist/_chunks/es-DE22V9D4.js.map +1 -0
- package/dist/_chunks/{fr-4BkQ-Qvt.mjs → fr-BgqFw7G8.mjs} +1 -1
- package/dist/_chunks/fr-BgqFw7G8.mjs.map +1 -0
- package/dist/_chunks/{fr-cJXSt55N.js → fr-Ca-HowfR.js} +1 -1
- package/dist/_chunks/fr-Ca-HowfR.js.map +1 -0
- package/dist/_chunks/{pl-TWurBBP_.mjs → pl-CbET57Jb.mjs} +1 -1
- package/dist/_chunks/pl-CbET57Jb.mjs.map +1 -0
- package/dist/_chunks/{pl-wKw9Xgkw.js → pl-DVnJGR87.js} +1 -1
- package/dist/_chunks/pl-DVnJGR87.js.map +1 -0
- package/dist/_chunks/{ru-aD804UEo.mjs → ru-BFz40YSA.mjs} +1 -1
- package/dist/_chunks/ru-BFz40YSA.mjs.map +1 -0
- package/dist/_chunks/{ru-CYAnXR6L.js → ru-o4zaP02C.js} +1 -1
- package/dist/_chunks/ru-o4zaP02C.js.map +1 -0
- package/dist/_chunks/{sv-XNOe1ctV.js → sv-9qK4y9fb.js} +1 -1
- package/dist/_chunks/sv-9qK4y9fb.js.map +1 -0
- package/dist/_chunks/{sv-N5RufX6w.mjs → sv-CNYcKBn2.mjs} +1 -1
- package/dist/_chunks/sv-CNYcKBn2.mjs.map +1 -0
- package/dist/_chunks/{tr-UmSHgD8y.mjs → tr-H1PrR6RM.mjs} +1 -1
- package/dist/_chunks/tr-H1PrR6RM.mjs.map +1 -0
- package/dist/_chunks/{tr-POFbAHUC.js → tr-fBBDNMBY.js} +1 -1
- package/dist/_chunks/tr-fBBDNMBY.js.map +1 -0
- package/dist/_chunks/{zh-KvwXXMnA.mjs → zh-BEh3jejH.mjs} +1 -1
- package/dist/_chunks/zh-BEh3jejH.mjs.map +1 -0
- package/dist/_chunks/{zh-kJ_DkSIe.js → zh-CyCKPuL0.js} +1 -1
- package/dist/_chunks/zh-CyCKPuL0.js.map +1 -0
- package/dist/_chunks/{zh-Hans-pnigVFnS.js → zh-Hans-Btuz6Y7W.js} +1 -1
- package/dist/_chunks/zh-Hans-Btuz6Y7W.js.map +1 -0
- package/dist/_chunks/{zh-Hans-ClgXy4wM.mjs → zh-Hans-CRQss50D.mjs} +1 -1
- package/dist/_chunks/zh-Hans-CRQss50D.mjs.map +1 -0
- package/dist/admin/index.js +10 -10
- package/dist/admin/index.mjs +10 -10
- package/dist/server/index.js +10 -7
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.mjs +10 -7
- package/dist/server/index.mjs.map +1 -1
- package/dist/server/src/services/builders/filters/operators/eq.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/operators/index.d.ts.map +1 -1
- package/dist/server/src/services/builders/filters/operators/not.d.ts.map +1 -1
- package/dist/server/src/services/builders/index.d.ts.map +1 -1
- package/dist/server/src/services/builders/mutations/single-type.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/association.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/component.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/dynamic-zone.d.ts.map +1 -1
- package/dist/server/src/services/builders/resolvers/query.d.ts.map +1 -1
- package/dist/server/src/services/builders/utils.d.ts +1 -1
- package/dist/server/src/services/builders/utils.d.ts.map +1 -1
- package/dist/server/src/services/content-api/index.d.ts.map +1 -1
- package/dist/server/src/services/content-api/policy.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/collection-type.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/component.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/dynamic-zones.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/enums.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/filters.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/inputs.d.ts.map +1 -1
- package/dist/server/src/services/content-api/register-functions/single-type.d.ts.map +1 -1
- package/dist/server/src/services/content-api/wrap-resolvers.d.ts.map +1 -1
- package/dist/server/src/services/extension/extension.d.ts.map +1 -1
- package/dist/server/src/services/utils/naming.d.ts +1 -1
- package/dist/server/src/services/utils/naming.d.ts.map +1 -1
- package/package.json +10 -10
- package/dist/_chunks/dk-KmLnUoJC.mjs.map +0 -1
- package/dist/_chunks/dk-SLrLqAtl.js.map +0 -1
- package/dist/_chunks/en-A16mqbIV.mjs.map +0 -1
- package/dist/_chunks/en-WmmC2MW8.js.map +0 -1
- package/dist/_chunks/es-4tl6ikyU.js.map +0 -1
- package/dist/_chunks/es-_xZ14QXK.mjs.map +0 -1
- package/dist/_chunks/fr-4BkQ-Qvt.mjs.map +0 -1
- package/dist/_chunks/fr-cJXSt55N.js.map +0 -1
- package/dist/_chunks/pl-TWurBBP_.mjs.map +0 -1
- package/dist/_chunks/pl-wKw9Xgkw.js.map +0 -1
- package/dist/_chunks/ru-CYAnXR6L.js.map +0 -1
- package/dist/_chunks/ru-aD804UEo.mjs.map +0 -1
- package/dist/_chunks/sv-N5RufX6w.mjs.map +0 -1
- package/dist/_chunks/sv-XNOe1ctV.js.map +0 -1
- package/dist/_chunks/tr-POFbAHUC.js.map +0 -1
- package/dist/_chunks/tr-UmSHgD8y.mjs.map +0 -1
- package/dist/_chunks/zh-Hans-ClgXy4wM.mjs.map +0 -1
- package/dist/_chunks/zh-Hans-pnigVFnS.js.map +0 -1
- package/dist/_chunks/zh-KvwXXMnA.mjs.map +0 -1
- package/dist/_chunks/zh-kJ_DkSIe.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dk-BbJCmDw6.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dk-C9NcSzyg.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-BiKpmhCU.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"en-YIQYYlvv.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es-BbsZ5Fh0.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"es-DE22V9D4.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr-BgqFw7G8.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fr-Ca-HowfR.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pl-CbET57Jb.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pl-DVnJGR87.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ru-BFz40YSA.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ru-o4zaP02C.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv-9qK4y9fb.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sv-CNYcKBn2.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tr-H1PrR6RM.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tr-fBBDNMBY.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-BEh3jejH.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-CyCKPuL0.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-Hans-Btuz6Y7W.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"zh-Hans-CRQss50D.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
|
package/dist/admin/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
const name$1 = "@strapi/plugin-graphql";
|
|
12
|
-
const version = "5.0.0-beta.
|
|
12
|
+
const version = "5.0.0-beta.3";
|
|
13
13
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
14
14
|
const repository = {
|
|
15
15
|
type: "git",
|
|
@@ -61,10 +61,10 @@ const dependencies = {
|
|
|
61
61
|
"@as-integrations/koa": "1.1.1",
|
|
62
62
|
"@graphql-tools/schema": "8.5.1",
|
|
63
63
|
"@graphql-tools/utils": "^8.13.1",
|
|
64
|
-
"@koa/cors": "
|
|
65
|
-
"@strapi/design-system": "1.
|
|
64
|
+
"@koa/cors": "5.0.0",
|
|
65
|
+
"@strapi/design-system": "1.17.0",
|
|
66
66
|
"@strapi/icons": "1.16.0",
|
|
67
|
-
"@strapi/utils": "5.0.0-beta.
|
|
67
|
+
"@strapi/utils": "5.0.0-beta.3",
|
|
68
68
|
graphql: "^16.8.1",
|
|
69
69
|
"graphql-depth-limit": "^1.1.0",
|
|
70
70
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -76,19 +76,19 @@ const dependencies = {
|
|
|
76
76
|
pluralize: "8.0.0"
|
|
77
77
|
};
|
|
78
78
|
const devDependencies = {
|
|
79
|
-
"@strapi/strapi": "5.0.0-beta.
|
|
80
|
-
"@strapi/types": "5.0.0-beta.
|
|
79
|
+
"@strapi/strapi": "5.0.0-beta.3",
|
|
80
|
+
"@strapi/types": "5.0.0-beta.3",
|
|
81
81
|
"@types/graphql-depth-limit": "1.1.5",
|
|
82
82
|
"@types/koa-bodyparser": "4.3.12",
|
|
83
83
|
"@types/koa__cors": "5.0.0",
|
|
84
84
|
"cross-env": "^7.0.3",
|
|
85
|
-
"eslint-config-custom": "5.0.0-beta.
|
|
86
|
-
koa: "2.
|
|
85
|
+
"eslint-config-custom": "5.0.0-beta.3",
|
|
86
|
+
koa: "2.15.2",
|
|
87
87
|
react: "^18.2.0",
|
|
88
88
|
"react-dom": "^18.2.0",
|
|
89
89
|
"react-router-dom": "6.22.3",
|
|
90
90
|
"styled-components": "5.3.11",
|
|
91
|
-
tsconfig: "5.0.0-beta.
|
|
91
|
+
tsconfig: "5.0.0-beta.3",
|
|
92
92
|
typescript: "5.3.2"
|
|
93
93
|
};
|
|
94
94
|
const peerDependencies = {
|
|
@@ -149,7 +149,7 @@ const index = {
|
|
|
149
149
|
async registerTrads({ locales }) {
|
|
150
150
|
const importedTrads = await Promise.all(
|
|
151
151
|
locales.map((locale) => {
|
|
152
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => Promise.resolve().then(() => require("../_chunks/dk-
|
|
152
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => Promise.resolve().then(() => require("../_chunks/dk-C9NcSzyg.js")), "./translations/en.json": () => Promise.resolve().then(() => require("../_chunks/en-BiKpmhCU.js")), "./translations/es.json": () => Promise.resolve().then(() => require("../_chunks/es-DE22V9D4.js")), "./translations/fr.json": () => Promise.resolve().then(() => require("../_chunks/fr-Ca-HowfR.js")), "./translations/pl.json": () => Promise.resolve().then(() => require("../_chunks/pl-DVnJGR87.js")), "./translations/ru.json": () => Promise.resolve().then(() => require("../_chunks/ru-o4zaP02C.js")), "./translations/sv.json": () => Promise.resolve().then(() => require("../_chunks/sv-9qK4y9fb.js")), "./translations/tr.json": () => Promise.resolve().then(() => require("../_chunks/tr-fBBDNMBY.js")), "./translations/zh-Hans.json": () => Promise.resolve().then(() => require("../_chunks/zh-Hans-Btuz6Y7W.js")), "./translations/zh.json": () => Promise.resolve().then(() => require("../_chunks/zh-CyCKPuL0.js")) }), `./translations/${locale}.json`).then(({ default: data }) => {
|
|
153
153
|
return {
|
|
154
154
|
data: prefixPluginTranslations(data, pluginId),
|
|
155
155
|
locale
|
package/dist/admin/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ const __variableDynamicImportRuntimeHelper = (glob, path) => {
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
const name$1 = "@strapi/plugin-graphql";
|
|
11
|
-
const version = "5.0.0-beta.
|
|
11
|
+
const version = "5.0.0-beta.3";
|
|
12
12
|
const description = "Adds GraphQL endpoint with default API methods.";
|
|
13
13
|
const repository = {
|
|
14
14
|
type: "git",
|
|
@@ -60,10 +60,10 @@ const dependencies = {
|
|
|
60
60
|
"@as-integrations/koa": "1.1.1",
|
|
61
61
|
"@graphql-tools/schema": "8.5.1",
|
|
62
62
|
"@graphql-tools/utils": "^8.13.1",
|
|
63
|
-
"@koa/cors": "
|
|
64
|
-
"@strapi/design-system": "1.
|
|
63
|
+
"@koa/cors": "5.0.0",
|
|
64
|
+
"@strapi/design-system": "1.17.0",
|
|
65
65
|
"@strapi/icons": "1.16.0",
|
|
66
|
-
"@strapi/utils": "5.0.0-beta.
|
|
66
|
+
"@strapi/utils": "5.0.0-beta.3",
|
|
67
67
|
graphql: "^16.8.1",
|
|
68
68
|
"graphql-depth-limit": "^1.1.0",
|
|
69
69
|
"graphql-playground-middleware-koa": "^1.6.21",
|
|
@@ -75,19 +75,19 @@ const dependencies = {
|
|
|
75
75
|
pluralize: "8.0.0"
|
|
76
76
|
};
|
|
77
77
|
const devDependencies = {
|
|
78
|
-
"@strapi/strapi": "5.0.0-beta.
|
|
79
|
-
"@strapi/types": "5.0.0-beta.
|
|
78
|
+
"@strapi/strapi": "5.0.0-beta.3",
|
|
79
|
+
"@strapi/types": "5.0.0-beta.3",
|
|
80
80
|
"@types/graphql-depth-limit": "1.1.5",
|
|
81
81
|
"@types/koa-bodyparser": "4.3.12",
|
|
82
82
|
"@types/koa__cors": "5.0.0",
|
|
83
83
|
"cross-env": "^7.0.3",
|
|
84
|
-
"eslint-config-custom": "5.0.0-beta.
|
|
85
|
-
koa: "2.
|
|
84
|
+
"eslint-config-custom": "5.0.0-beta.3",
|
|
85
|
+
koa: "2.15.2",
|
|
86
86
|
react: "^18.2.0",
|
|
87
87
|
"react-dom": "^18.2.0",
|
|
88
88
|
"react-router-dom": "6.22.3",
|
|
89
89
|
"styled-components": "5.3.11",
|
|
90
|
-
tsconfig: "5.0.0-beta.
|
|
90
|
+
tsconfig: "5.0.0-beta.3",
|
|
91
91
|
typescript: "5.3.2"
|
|
92
92
|
};
|
|
93
93
|
const peerDependencies = {
|
|
@@ -148,7 +148,7 @@ const index = {
|
|
|
148
148
|
async registerTrads({ locales }) {
|
|
149
149
|
const importedTrads = await Promise.all(
|
|
150
150
|
locales.map((locale) => {
|
|
151
|
-
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => import("../_chunks/dk-
|
|
151
|
+
return __variableDynamicImportRuntimeHelper(/* @__PURE__ */ Object.assign({ "./translations/dk.json": () => import("../_chunks/dk-BbJCmDw6.mjs"), "./translations/en.json": () => import("../_chunks/en-YIQYYlvv.mjs"), "./translations/es.json": () => import("../_chunks/es-BbsZ5Fh0.mjs"), "./translations/fr.json": () => import("../_chunks/fr-BgqFw7G8.mjs"), "./translations/pl.json": () => import("../_chunks/pl-CbET57Jb.mjs"), "./translations/ru.json": () => import("../_chunks/ru-BFz40YSA.mjs"), "./translations/sv.json": () => import("../_chunks/sv-CNYcKBn2.mjs"), "./translations/tr.json": () => import("../_chunks/tr-H1PrR6RM.mjs"), "./translations/zh-Hans.json": () => import("../_chunks/zh-Hans-CRQss50D.mjs"), "./translations/zh.json": () => import("../_chunks/zh-BEh3jejH.mjs") }), `./translations/${locale}.json`).then(({ default: data }) => {
|
|
152
152
|
return {
|
|
153
153
|
data: prefixPluginTranslations(data, pluginId),
|
|
154
154
|
locale
|
package/dist/server/index.js
CHANGED
|
@@ -2044,11 +2044,11 @@ const createCollectionTypeMutationsBuilder = ({ strapi: strapi2 }) => {
|
|
|
2044
2044
|
},
|
|
2045
2045
|
async resolve(parent, args22, context) {
|
|
2046
2046
|
const { auth } = context.state;
|
|
2047
|
-
const { data,
|
|
2047
|
+
const { data, ...restParams } = args22;
|
|
2048
2048
|
const sanitizedInputData = await strapi2.contentAPI.sanitize.input(data, contentType2, {
|
|
2049
2049
|
auth
|
|
2050
2050
|
});
|
|
2051
|
-
return strapi2.documents(uid).update(
|
|
2051
|
+
return strapi2.documents(uid).update({
|
|
2052
2052
|
...restParams,
|
|
2053
2053
|
data: sanitizedInputData
|
|
2054
2054
|
});
|
|
@@ -2071,7 +2071,7 @@ const createCollectionTypeMutationsBuilder = ({ strapi: strapi2 }) => {
|
|
|
2071
2071
|
},
|
|
2072
2072
|
async resolve(parent, args22) {
|
|
2073
2073
|
const { documentId } = args22;
|
|
2074
|
-
await strapi2.documents(uid).delete(documentId);
|
|
2074
|
+
await strapi2.documents(uid).delete({ documentId });
|
|
2075
2075
|
return { documentId };
|
|
2076
2076
|
}
|
|
2077
2077
|
});
|
|
@@ -2151,8 +2151,9 @@ const createSingleTypeMutationsBuilder = ({ strapi: strapi2 }) => {
|
|
|
2151
2151
|
});
|
|
2152
2152
|
const document = await strapi2.db?.query(uid).findOne();
|
|
2153
2153
|
if (document) {
|
|
2154
|
-
return strapi2.documents(uid).update(
|
|
2154
|
+
return strapi2.documents(uid).update({
|
|
2155
2155
|
...args22,
|
|
2156
|
+
documentId: document.documentId,
|
|
2156
2157
|
data: sanitizedInputData
|
|
2157
2158
|
});
|
|
2158
2159
|
}
|
|
@@ -2180,7 +2181,7 @@ const createSingleTypeMutationsBuilder = ({ strapi: strapi2 }) => {
|
|
|
2180
2181
|
if (!document) {
|
|
2181
2182
|
throw new NotFoundError("Document not found");
|
|
2182
2183
|
}
|
|
2183
|
-
await strapi2.documents(uid).delete(document.documentId
|
|
2184
|
+
await strapi2.documents(uid).delete({ ...args22, documentId: document.documentId });
|
|
2184
2185
|
return document;
|
|
2185
2186
|
}
|
|
2186
2187
|
});
|
|
@@ -2479,15 +2480,17 @@ const queriesResolvers = ({ strapi: strapi2 }) => ({
|
|
|
2479
2480
|
return strapi2.documents(uid).findFirst({ status: "published", ...sanitizedQuery });
|
|
2480
2481
|
},
|
|
2481
2482
|
async findOne(parent, args2, ctx) {
|
|
2483
|
+
const { documentId } = args2;
|
|
2482
2484
|
await strapi2.contentAPI.validate.query(args2, contentType2, {
|
|
2483
2485
|
auth: ctx?.state?.auth
|
|
2484
2486
|
});
|
|
2485
2487
|
const sanitizedQuery = await strapi2.contentAPI.sanitize.query(args2, contentType2, {
|
|
2486
2488
|
auth: ctx?.state?.auth
|
|
2487
2489
|
});
|
|
2488
|
-
return strapi2.documents(uid).findOne(
|
|
2490
|
+
return strapi2.documents(uid).findOne({
|
|
2489
2491
|
status: "published",
|
|
2490
|
-
...fp.omit(["id", "documentId"], sanitizedQuery)
|
|
2492
|
+
...fp.omit(["id", "documentId"], sanitizedQuery),
|
|
2493
|
+
documentId
|
|
2491
2494
|
});
|
|
2492
2495
|
}
|
|
2493
2496
|
};
|