Logo
GitHubDiscord

Empty abstract typesExperimentalRFC1

Allow interfaces with no fields and unions with no members:

# this is valid
interface Marker {}

# this is valid too
union Nothing

This is useful to represent partial schemas (for example subschemas extracted from a larger schema), and avoids having to pick unions over interfaces only because interfaces must have fields.

More info: https://github.com/graphql/graphql-spec/pull/1229

Projects

Project Name Supported Since Note
Apollo Client ?

Know the status of this feature? Let us know!

Apollo Kotlin main

pr, empty interfaces only (not verified for unions).

Apollo Router ?

Know the status of this feature? Let us know!

Apollo Server ?

Know the status of this feature? Let us know!

Apollo iOS ?

Know the status of this feature? Let us know!

Cosmo Router -

Empty interfaces and unions are rejected

Domain Graph Service (DGS) Framework ?

Know the status of this feature? Let us know!

Fusion ?

Know the status of this feature? Let us know!

GraphQL Code Generator ?

Know the status of this feature? Let us know!

GraphQL Java ?

Know the status of this feature? Let us know!

GraphQL Kotlin ?

Know the status of this feature? Let us know!

GraphQL Yoga ?

Know the status of this feature? Let us know!

GraphQL.js -

pr

GraphiQL ?

Know the status of this feature? Let us know!

Grats ?

Know the status of this feature? Let us know!

Hive Gateway ?

Know the status of this feature? Let us know!

Hot Chocolate ?

Know the status of this feature? Let us know!

Mercurius N/A

Provided by GraphQL.js

Nitro ?

Know the status of this feature? Let us know!

Relay ?

Know the status of this feature? Let us know!

Spring for GraphQL ?

Know the status of this feature? Let us know!

gql.tada ?

Know the status of this feature? Let us know!

urql ?

Know the status of this feature? Let us know!