glesys / butler-graphql

An opinionated GraphQL package for Laravel.
MIT License
34 stars 5 forks source link

feat: union support #27

Closed wecc closed 4 years ago

wecc commented 4 years ago

Union support 🎉

Types are resolved using the same technique as for interfaces: $source['__typename'], $source->__typename, Parent@resolveTypeForField() (Query@resolveType for queries and mutations) or class base name.