Skip to content

Commit 268f1dc

Browse files
committed
fix missing reference error of $books variable
1 parent fac5406 commit 268f1dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/books/__schema.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ function ($_, $args) use ($books) {
174174
/**
175175
* Create the Mutation-Type
176176
*/
177-
$mutationType = new GraphQLObjectType("Mutation", "Root Mutation", function () use (&$bookType) {
177+
$mutationType = new GraphQLObjectType("Mutation", "Root Mutation", function () use (&$bookType, &$books) {
178178
return [
179179
new GraphQLTypeField(
180180
"incrementBookIds",

0 commit comments

Comments
 (0)