@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | ['id' => 2, 'name' => 'Alex'], |
| 32 | 32 | ['id' => 3, 'name' => 'Mike'], |
| 33 | 33 | ]; |
| 34 | - $posts = []; |
|
| 34 | + $posts = []; |
|
| 35 | 35 | for ($i = 0; $i < 10; $i++) { |
| 36 | 36 | $posts[] = [ |
| 37 | 37 | 'id' => $i + 1, |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | 'fields' => [ |
| 68 | 68 | 'posts' => [ |
| 69 | 69 | 'type' => new ListType($postType), |
| 70 | - 'resolve' => function ($source, $args, $info) { |
|
| 70 | + 'resolve' => function($source, $args, $info) { |
|
| 71 | 71 | return $this->getDataForPosts(); |
| 72 | 72 | } |
| 73 | 73 | ] |