-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
π» Needs ChampionRFC Needs a champion to progress (See CONTRIBUTING.md)RFC Needs a champion to progress (See CONTRIBUTING.md)π Strawman (RFC 0)RFC Stage 0 (See CONTRIBUTING.md)RFC Stage 0 (See CONTRIBUTING.md)
Description
It makes sense often to have a field that could return, for example, an Int
or a String
. It would be convenient to be able to use a resolveType
-like mechanism to determine how the value is serialized. This would be even more useful for custom scalars.
The specification currently says: "GraphQL Unions represent an object that could be one of a list of GraphQL Object types", which basically means that unions are the same as interfaces, but without any shared fields. Supporting unions of scalars would further differentiate unions from interfaces.
migueloller, witbybit, octet-stream, jlengstorf, scroobius-pip and 226 morenrbnluluneopunisher, CodeMonkeySteve, shoooe, offero, wesleyyee and 19 moreacao, ahmednawazkhan, valentin-panalyt, aitorllj93, randomer and 5 moredwiyatci, ahmednawazkhan, randomer, Marc-Cilliers, fredzqm and 3 morealfonmga, beneshed, shoooe, umstek, lukeramsden and 16 more
Metadata
Metadata
Assignees
Labels
π» Needs ChampionRFC Needs a champion to progress (See CONTRIBUTING.md)RFC Needs a champion to progress (See CONTRIBUTING.md)π Strawman (RFC 0)RFC Stage 0 (See CONTRIBUTING.md)RFC Stage 0 (See CONTRIBUTING.md)