Logo
GitHubDiscord

Empty typesExperimentalRFC1

Allow object types, interfaces and input objects with no fields, unions with no members and enums with no values:

type Query {
  topAuthors: [Author!]
}
type Author {
  name: String!
  topBooks: [Book!]
}
# all of these are valid
type Book
interface Marker
input Filter
union Nothing
enum Never

This is useful to represent partial schemas (for example subschemas extracted from a larger schema to feed an LLM), to deprecate all the fields of a type without making the schema invalid, and avoids having to pick unions over interfaces only because interfaces must have fields.

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

Projects

Project Name Supported Since Note
Apollo Client ?

Know the status of this feature? Let us know!

Apollo Kotlin main

pr, empty objects and interfaces only (not verified for unions, input objects and enums).

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 objects, 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 -

objects pr, interfaces and unions 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!