Let's explore GraphQL directives with Hot Chocolate 13

preview_player
Показать описание
Hi everyone,

In this episode, I will show you how GraphQL directives, after a lot of neglect over the years, have become slick to use with the Hot Chocolate 13. We have finally integrated directives into the annotation-based schema approach and reduced with this so much boilerplate that it is now a joy to use them.

Please, if you like our project, give us a star on GitHub:

Workshops:

Social Media:

Web:

#dotnet #graphql #hotchocolate #directives
Рекомендации по теме
Комментарии
Автор

These videos are amazing! It would be great to be able to experiment on our own with the things mentioned here using your demo code as a starting point. Is it available anywhere?

DavidDancy-htqs
Автор

I wonder if something might be missing from your code that you show here, regarding the toUpper directive? As far as I can see, there is no mapping between the ToUpperMiddlewareAttribute class and the ToUpper class, which I suspect is needed.

Also, can you confirm it is supposed to picked up automatically, even if not used anywhere else in the code? Because in my case, toUpper never appears in the schema, so it seems I need to nudge it somehow into being registered.

HogneVevle
Автор

Great video as always. If I could offer one suggestion, it would be that a 13 minute video on the topic of GraphQL directives should have a very brief description of what GraphQL directives are. Not anything in detail. A 30-second intro ought to be enough.

mubashir