Skip to content

Commit c03f24a

Browse files
committed
Improved raw result
1 parent b17ff23 commit c03f24a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/HotChocolate/Fusion-vnext/src/Fusion.Execution/Execution/Results/RawOperationResult.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ internal RawOperationResult(
2222

2323
public CompositeResultDocument Result => _result;
2424

25+
public IReadOnlyList<IError>? Errors => _result.Errors;
26+
27+
public IReadOnlyDictionary<string, object?>? Extensions => _result.Extensions;
28+
2529
public override IReadOnlyDictionary<string, object?>? ContextData => _contextData;
2630

2731
public void WriteTo(IBufferWriter<byte> writer, bool indented = false)
@@ -44,8 +48,6 @@ public void WriteTo(IBufferWriter<byte> writer, bool indented = false)
4448

4549
IReadOnlyList<object?>? IOperationResult.Items => throw new NotSupportedException();
4650

47-
IReadOnlyList<IError>? IOperationResult.Errors => throw new NotSupportedException();
48-
4951
IReadOnlyDictionary<string, object?>? IOperationResult.Extensions => throw new NotSupportedException();
5052

5153
IReadOnlyList<IOperationResult>? IOperationResult.Incremental => throw new NotSupportedException();

0 commit comments

Comments
 (0)