File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
website/src/docs/hotchocolate/v13/defining-a-schema Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ public class SubscriptionType : ObjectType
104
104
var receiver = context .Service <ITopicEventReceiver >();
105
105
106
106
ISourceStream stream =
107
- await receiver .SubscribeAsync <string , Book >(" bookAdded" );
107
+ await receiver .SubscribeAsync <Book >(" bookAdded" );
108
108
109
109
return stream ;
110
110
});
@@ -346,7 +346,7 @@ public class Subscription
346
346
{
347
347
public ValueTask <ISourceStream <Book >> SubscribeToBooks (
348
348
[Service ] ITopicEventReceiver receiver )
349
- => receiver .SubscribeAsync <string , Book >(" ExampleTopic" );
349
+ => receiver .SubscribeAsync <Book >(" ExampleTopic" );
350
350
351
351
[Subscribe (With = nameof (SubscribeToBooks ))]
352
352
public Book BookAdded ([EventMessage ] Book book )
You can’t perform that action at this time.
0 commit comments