GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
532 stars 67 forks source link

add array based init for unions #91

Closed samisuteria closed 1 year ago

samisuteria commented 1 year ago

For unions with a lot of members it's sometimes easier to format the code so each member is on a new line with a trailing comma. You can't do this with the variadic style init.