cmeeren / FSharp.HotChocolate

Support for F# types and nullability in HotChocolate
MIT License
7 stars 1 forks source link

F# unions as interfaces #24

Open cmeeren opened 17 hours ago

cmeeren commented 17 hours ago

We already support F# unions as GraphQL unions.

I think it would also be helpful to be able to represent the same kind of F# unions as GraphQL interfaces. The union type itself would then be the interface, and the constituent types would then implement this interface.