You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems there has been a regression in Type/Object/PostObject.php:140. The default resolver from graphql-php's Executor::defaultFieldResolver will search for $source->{$fieldName}, which of course does not exist.
This fixes it:
'resolve' => function ( Post $post, $args, $context, $info ) {
return absint( $post->ID );
},
The text was updated successfully, but these errors were encountered:
Seems there has been a regression in
Type/Object/PostObject.php:140
. The default resolver fromgraphql-php
'sExecutor::defaultFieldResolver
will search for$source->{$fieldName}
, which of course does not exist.This fixes it:
The text was updated successfully, but these errors were encountered: