SilverStripe\Gatsby\GraphQL\Types\DataObjectTypeCreator::resolveField
Gatsby rejects fields that are null on every record, because it can't infer a type.
This function coerces null into its proper empty value to help Gatsby type it.
Signature
public function resolveField(
$object,
[array
$args = ,
$context,
ResolveInfo
$info] )
Parameters
$object
—$args
— array$context
—$info
— GraphQL\Type\Definition\ResolveInfo
Returns
- mixed