How to get the GraphQL mutation params with ctx?

The id in this case is not inside the ctx.body, it is inside the ctx.params.

Take a look here, at the TIP section:
https://strapi.io/documentation/developer-docs/latest/plugins/graphql.html#link-a-query-or-mutation-to-a-controller-action

1 Like