public function testNullsANullableFieldThatThrowsSynchronously()
{
$doc = '
query Q {
sync
}
';
$ast = Parser::parse($doc);
$expected = ['data' => ['sync' => null], 'errors' => [FormattedError::create($this->syncError->getMessage(), [new SourceLocation(3, 9)])]];
$this->assertArraySubset($expected, Executor::execute($this->schema, $ast, $this->throwingData, null, [], 'Q')->toArray());
}