@@ -72,7 +72,7 @@ |
||
| 72 | 72 | 'type' => Type::nonNull($types->getOutput(Post::class)), |
| 73 | 73 | 'args' => [ |
| 74 | 74 | 'id' => Type::nonNull(Type::id()), // Use standard API when needed |
| 75 | - 'input' => $types->getPartialInput(Post::class), // Use automated InputObjectType for partial input for updates |
|
| 75 | + 'input' => $types->getPartialInput(Post::class), // Use automated InputObjectType for partial input for updates |
|
| 76 | 76 | ], |
| 77 | 77 | 'resolve' => function ($root, $args): void { |
| 78 | 78 | // update existing post and flush... |
@@ -158,7 +158,7 @@ |
||
| 158 | 158 | /** @var ReflectionNamedType $type */ |
| 159 | 159 | $type = $param->getType(); |
| 160 | 160 | if (!$arg->getTypeInstance() && $type) { |
| 161 | - $this->throwIfArray($param, $type->getName()); |
|
| 161 | + $this->throwIfArray($param, $type->getName()); |
|
| 162 | 162 | $arg->setTypeInstance($this->reflectionTypeToType($type, true)); |
| 163 | 163 | } |
| 164 | 164 | |