mirror of
https://github.com/strapi/strapi.git
synced 2025-12-25 06:04:29 +00:00
Pass extra args in ctx.query for every mutation
This commit is contained in:
parent
1976731366
commit
686aa2ae80
@ -75,10 +75,7 @@ const buildMutationContext = ({ options, graphqlContext }) => {
|
||||
ctx.request.body = options;
|
||||
}
|
||||
|
||||
// pass extra args as ctx.query
|
||||
if (options.input) {
|
||||
ctx.query = convertToParams(_.omit(options, 'input'));
|
||||
}
|
||||
ctx.query = convertToParams(_.omit(options, 'input'));
|
||||
|
||||
return ctx;
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user