HotChocolate: An Introduction to GraphQL for ASP.NET Core by Michael Staib

Поделиться
HTML-код
  • Опубликовано: 16 янв 2025

Комментарии • 7

  • @yt.arunthakur
    @yt.arunthakur 4 года назад +1

    Alright! That was really hot. 🙏 Will embark on it soon.

  • @hansbauml7692
    @hansbauml7692 4 года назад +4

    Hi,
    About the subscription Topic at the end:
    The solution is having the Subscription return Type "IAsyncEnumerable". It seems, that the interface is checked directly. If you return the IEventStream hc sais it cannot cast the type (As seen in the exception), even though it implements IAsyncEnumerable. Here a snippet from my subscription:
    [SubscribeAndResolve]
    public async ValueTask UserUpdated([Service] ITopicEventReceiver receiver)
    {
    return await receiver.SubscribeAsync(Channels.UserUpdated);
    }
    Another cause of error will be that the ITopicEventReceiver has to be injected as service, otherwise hc interpret it as parameter (or you use SubscriptionType and do it manually).
    Cheers!

  • @sc12sc
    @sc12sc 4 года назад +2

    Very helpful, Thanks !

  • @yousefhassan847
    @yousefhassan847 4 года назад +1

    I did the exact same thing, but I don't have the possibiltiy to add middlewares to my queries. Has it changed?

  • @nowzarifarhad
    @nowzarifarhad 4 года назад +1

    How does this work with microservices?

  • @andreaskarz
    @andreaskarz 2 года назад

    At 46:15 - Don't you have to follow any order here like:
    1. UseSelection
    2. UseFiltering
    3. UseSorting
    4. UsePaging

  • @vicenzomartinelli4521
    @vicenzomartinelli4521 4 года назад +1

    This is very hot stuff!