@@ -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... |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | $this->readCustomOperatorsFromAnnotation($metadata->reflClass); |
| 60 | 60 | |
| 61 | 61 | // This will convert 'datetime' string to 'DateTime' |
| 62 | - $fieldMappings = array_map(function($mapping){ |
|
| 62 | + $fieldMappings = array_map(function ($mapping) { |
|
| 63 | 63 | switch ($mapping['type']) { |
| 64 | 64 | case 'datetime': { |
| 65 | 65 | $mapping['type'] = 'DateTime'; |