@strapi/plugin-graphql 4.0.0-beta.15 → 4.0.0-beta.16
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-graphql",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.16",
|
|
4
4
|
"description": "Adds GraphQL endpoint with default API methods.",
|
|
5
5
|
"strapi": {
|
|
6
6
|
"displayName": "GraphQL",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"@apollo/federation": "^0.28.0",
|
|
16
16
|
"@graphql-tools/schema": "8.1.2",
|
|
17
17
|
"@graphql-tools/utils": "^8.0.2",
|
|
18
|
-
"@strapi/utils": "4.0.0-beta.
|
|
18
|
+
"@strapi/utils": "4.0.0-beta.16",
|
|
19
19
|
"apollo-server-core": "3.1.2",
|
|
20
20
|
"apollo-server-koa": "3.1.2",
|
|
21
21
|
"glob": "^7.1.7",
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"npm": ">=6.0.0"
|
|
54
54
|
},
|
|
55
55
|
"license": "SEE LICENSE IN LICENSE",
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "71bdfa34637832e8e78a6cf1b57c8c6dbadf133d"
|
|
57
57
|
}
|
|
@@ -150,12 +150,6 @@ module.exports = context => {
|
|
|
150
150
|
const type = attribute.multiple
|
|
151
151
|
? naming.getRelationResponseCollectionName(fileContentType)
|
|
152
152
|
: naming.getEntityResponseName(fileContentType);
|
|
153
|
-
const resolverPath = `${naming.getTypeName(contentType)}.${attributeName}`;
|
|
154
|
-
const resolverAuthScope = `${fileUID}.find`;
|
|
155
|
-
|
|
156
|
-
extension.use({
|
|
157
|
-
resolversConfig: { [resolverPath]: { auth: { scope: [resolverAuthScope] } } },
|
|
158
|
-
});
|
|
159
153
|
|
|
160
154
|
builder.field(attributeName, { type, resolve, args });
|
|
161
155
|
};
|