ChilliCream / graphql-platform

Welcome to the home of the Hot Chocolate GraphQL server for .NET, the Strawberry Shake GraphQL client for .NET and Banana Cake Pop the awesome Monaco based GraphQL IDE.
https://chillicream.com
MIT License
5.24k stars 744 forks source link

Add DirectiveType, InterfaceType, DiagnosticEventListener, TypeInterceptor source generation #5829

Open erwan-joly opened 1 year ago

erwan-joly commented 1 year ago

Product

Hot Chocolate

Is your feature request related to a problem?

Hello, I recently started playing with the source generator and it's quite amazing as it reduce a lot the amount of registration for custom code. Unfortunately I haven't been able to cut this down to 0.

The solution you'd like

Something that would be nice having as part of the generator would be adding implementation types for "InterfaceType" and "DirectiveType" automatically. The only other custom code registration I had to do were DiagnosticEventListener and TypeInterceptor. It's unlikely anybody have a massive amount of those but having them source generated may be a good addition too.

DanielRose commented 1 year ago

Adding to this, the implementations of UnionType are also not generated.