@strapi/plugin-graphql 4.0.0-beta.15 → 4.0.0-beta.19

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,13 +1,20 @@
1
1
  {
2
2
  "name": "@strapi/plugin-graphql",
3
- "version": "4.0.0-beta.15",
3
+ "version": "4.0.0-beta.19",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
- "strapi": {
6
- "displayName": "GraphQL",
7
- "name": "graphql",
8
- "description": "Adds GraphQL endpoint with default API methods.",
9
- "kind": "plugin"
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "author": {
7
+ "name": "Strapi Solutions SAS",
8
+ "email": "hi@strapi.io",
9
+ "url": "https://strapi.io"
10
10
  },
11
+ "maintainers": [
12
+ {
13
+ "name": "Strapi Solutions SAS",
14
+ "email": "hi@strapi.io",
15
+ "url": "https://strapi.io"
16
+ }
17
+ ],
11
18
  "scripts": {
12
19
  "test": "echo \"no tests yet\""
13
20
  },
@@ -15,7 +22,7 @@
15
22
  "@apollo/federation": "^0.28.0",
16
23
  "@graphql-tools/schema": "8.1.2",
17
24
  "@graphql-tools/utils": "^8.0.2",
18
- "@strapi/utils": "4.0.0-beta.15",
25
+ "@strapi/utils": "4.0.0-beta.19",
19
26
  "apollo-server-core": "3.1.2",
20
27
  "apollo-server-koa": "3.1.2",
21
28
  "glob": "^7.1.7",
@@ -36,22 +43,15 @@
36
43
  "cross-env": "^7.0.3",
37
44
  "koa": "^2.13.1"
38
45
  },
39
- "author": {
40
- "name": "A Strapi developer",
41
- "email": "",
42
- "url": ""
43
- },
44
- "maintainers": [
45
- {
46
- "name": "A Strapi developer",
47
- "email": "",
48
- "url": ""
49
- }
50
- ],
51
46
  "engines": {
52
47
  "node": ">=12.x.x <=16.x.x",
53
48
  "npm": ">=6.0.0"
54
49
  },
55
- "license": "SEE LICENSE IN LICENSE",
56
- "gitHead": "c69713bf7f437a7cee66ffdeed95227d6246a872"
50
+ "strapi": {
51
+ "displayName": "GraphQL",
52
+ "name": "graphql",
53
+ "description": "Adds GraphQL endpoint with default API methods.",
54
+ "kind": "plugin"
55
+ },
56
+ "gitHead": "6e0f2052136c7d337d72b944cd0564d4559896d0"
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
  };