@strapi/plugin-graphql 4.5.0 → 4.5.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.
@@ -0,0 +1,4 @@
1
+ {
2
+ "plugin.description.long": "Lägger till en GraphQL-rutt med standard API-metoder.",
3
+ "plugin.description.short": "Lägger till en GraphQL-rutt med standard API-metoder."
4
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-graphql",
3
- "version": "4.5.0",
3
+ "version": "4.5.1",
4
4
  "description": "Adds GraphQL endpoint with default API methods.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "dependencies": {
30
30
  "@graphql-tools/schema": "8.1.2",
31
31
  "@graphql-tools/utils": "^8.12.0",
32
- "@strapi/utils": "4.5.0",
32
+ "@strapi/utils": "4.5.1",
33
33
  "apollo-server-core": "3.1.2",
34
34
  "apollo-server-koa": "3.10.0",
35
35
  "glob": "^7.1.7",
@@ -61,5 +61,5 @@
61
61
  "description": "Adds GraphQL endpoint with default API methods.",
62
62
  "kind": "plugin"
63
63
  },
64
- "gitHead": "33debd57010667a3fc5dfa343a673206cfb956e1"
64
+ "gitHead": "8c20ea2b5c5a115b78454086ea270dcd59b06004"
65
65
  }
@@ -54,7 +54,7 @@ module.exports = ({ strapi }) => {
54
54
  .buildMutationsResolvers({ contentType });
55
55
 
56
56
  const findParams = omit(['data', 'files'], transformedArgs);
57
- const entity = await strapi.entityService.findMany(uid, { params: findParams });
57
+ const entity = await strapi.entityService.findMany(uid, findParams);
58
58
 
59
59
  // Create or update
60
60
  const value = isNil(entity)
@@ -84,7 +84,7 @@ module.exports = ({ strapi }) => {
84
84
  .get('content-api')
85
85
  .buildMutationsResolvers({ contentType });
86
86
 
87
- const entity = await strapi.entityService.findMany(uid, { params: transformedArgs });
87
+ const entity = await strapi.entityService.findMany(uid, transformedArgs);
88
88
 
89
89
  if (!entity) {
90
90
  throw new NotFoundError('Entity not found');