Skip to content

Commit 635bd79

Browse files
authored
Update Subscription docs (remove generic argument in SubscribeAsync) (#6814)
1 parent 0a2e0fc commit 635bd79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

website/src/docs/hotchocolate/v13/defining-a-schema/subscriptions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ public class SubscriptionType : ObjectType
104104
var receiver = context.Service<ITopicEventReceiver>();
105105

106106
ISourceStream stream =
107-
await receiver.SubscribeAsync<string, Book>("bookAdded");
107+
await receiver.SubscribeAsync<Book>("bookAdded");
108108

109109
return stream;
110110
});
@@ -346,7 +346,7 @@ public class Subscription
346346
{
347347
public ValueTask<ISourceStream<Book>> SubscribeToBooks(
348348
[Service] ITopicEventReceiver receiver)
349-
=> receiver.SubscribeAsync<string, Book>("ExampleTopic");
349+
=> receiver.SubscribeAsync<Book>("ExampleTopic");
350350

351351
[Subscribe(With = nameof(SubscribeToBooks))]
352352
public Book BookAdded([EventMessage] Book book)

0 commit comments

Comments
 (0)