System Information
- Strapi Version: 4.0.1
- Operating System: macOS
- Database: SQLite
- Node Version: 16.14.0
- NPM Version: 8.3.1
- Yarn Version: 1.22.18
I am struggling with making GraphQL mutations work.
When I send mutations from the GraphQL playground, I get this error:
"code": "INTERNAL_SERVER_ERROR",
"exception": {
"stacktrace": [
"TypeError: Cannot read properties of undefined (reading 'get')",
" at Object.input (/my-repo/node_modules/@strapi/plugin-graphql/node_modules/@strapi/utils/lib/sanitize/index.js:33:10)",
" at resolve (/my-repo/node_modules/@strapi/plugin-graphql/server/services/builders/mutations/collection-type.js:40:62)",
" at /my-repo/node_modules/@strapi/plugin-graphql/server/services/content-api/policy.js:26:12",
" at /my-repo/node_modules/@strapi/plugin-graphql/server/services/content-api/wrap-resolvers.js:98:11",
" at fieldDefinition.resolve (/my-repo/node_modules/@strapi/plugin-graphql/server/services/content-api/wrap-resolvers.js:140:40)"
]
I have used GraphQL in the past and I am sure that:
1: I am sending mutations using the correct syntax.
2: I have enabled proper permissions.
PS: Queries are just working fine