@strapi/plugin-graphql 4.0.8 → 4.1.1

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.8",
3
+ "version": "4.1.1",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -30,7 +30,7 @@
30
30
  "@apollo/federation": "^0.28.0",
31
31
  "@graphql-tools/schema": "8.1.2",
32
32
  "@graphql-tools/utils": "^8.0.2",
33
- "@strapi/utils": "4.0.8",
33
+ "@strapi/utils": "4.1.1",
34
34
  "apollo-server-core": "3.1.2",
35
35
  "apollo-server-koa": "3.1.2",
36
36
  "glob": "^7.1.7",
@@ -64,5 +64,5 @@
64
64
  "description": "Adds GraphQL endpoint with default API methods.",
65
65
  "kind": "plugin"
66
66
  },
67
- "gitHead": "669bb2f0440d3b21a23c8d665fdba98bd3d8cc71"
67
+ "gitHead": "3a4db96af2a2d3fa54fe04bd09b1a4bf364caf3c"
68
68
  }
@@ -44,7 +44,7 @@ const formatGraphqlError = error => {
44
44
 
45
45
  // Internal server error
46
46
  strapi.log.error(originalError);
47
- return ApolloError('Internal Server Error', 'INTERNAL_SERVER_ERROR');
47
+ return new ApolloError('Internal Server Error', 'INTERNAL_SERVER_ERROR');
48
48
  };
49
49
 
50
50
  module.exports = formatGraphqlError;