Skip to content

Commit

Permalink
IBX-869: Fixed the arguments for the mutation resolver
Browse files Browse the repository at this point in the history
In v0.14 of the overblog/graphql-bundle, the arguments for "@=mutation" have been changed from an array to a sequence of arguments.
  • Loading branch information
Bertrand Dunogier committed Nov 15, 2022
1 parent 8b40bce commit 444dec1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function work(Builder $schema, array $args)
$this->getNameHelper()->itemName($contentType) . '!',
[
'resolve' => sprintf(
'@=mutation("CreateDomainContent", [args["input"], "%s", args["parentLocationId"], args["language"]])',
'@=mutation("CreateDomainContent", args["input"], "%s", args["parentLocationId"], args["language"])',
$contentType->identifier
), ]
)
Expand Down Expand Up @@ -69,7 +69,7 @@ public function work(Builder $schema, array $args)
new Builder\Input\Field(
$this->getUpdateField($contentType),
$this->getNameHelper()->itemName($contentType) . '!',
['resolve' => '@=mutation("UpdateDomainContent", [args["input"], args, args["versionNo"], args["language"]])']
['resolve' => '@=mutation("UpdateDomainContent", args["input"], args, args["versionNo"], args["language"])']
)
);

Expand Down

0 comments on commit 444dec1

Please sign in to comment.