Any support for unions?
Hi there,
Does GraphQL.Query.Builder support unions? https://graphql.org/learn/schema/#union-types
If not, have you got any plan to support unions in a not too distant future?
Regards, Reureu
Hi @reureu,
GraphQL.Query.Builder doesn't support union, but it's a good idea. I will implement it in the future, but I cannot give you a date.
Hi,
Great tool! Has there been any progress regarding the support for union types?
Hi, I haven't started anything regarding union types . A pull request would be welcome if you want to contribute 😊
Sorry for the wait. I just implemented union support in 2.2.0 #45
You can use:
IQuery<TSource> AddUnion<TUnionType>(string typeName, Func<IQuery<TUnionType>, IQuery<TUnionType>> build)
or
IQuery<TSource> AddUnion<TUnionType>(Func<IQuery<TUnionType>, IQuery<TUnionType>> build)