Skip to content

Commit 9ec8807

Browse files
pekkahjoemcbride
authored andcommitted
485 - wrap resolve result data
Wrap resolve result value data into dictionary
1 parent c733e48 commit 9ec8807

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/GraphQL/Subscription/SubscriptionExecuter.cs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
using System;
1+
using System;
22
using System.Collections.Concurrent;
33
using System.Collections.Generic;
44
using System.Linq;
@@ -185,7 +185,10 @@ private ResolveEventStreamResult ResolveEventStream(
185185
var fieldResolveResult = await ResolveFieldAsync(context, parentType, value, field, fieldPath);
186186
return new ExecutionResult
187187
{
188-
Data = fieldResolveResult.Value
188+
Data = new Dictionary<string, object>()
189+
{
190+
{ field.Name,fieldResolveResult.Value }
191+
}
189192
};
190193
})
191194
.Catch<ExecutionResult, Exception>(exception =>

0 commit comments

Comments
 (0)