Logo
GitHubDiscord

Empty selection setsExperimentalRFC2

Make it possible to have empty selection sets:

query GetUser {
  # this is valid
  user {} 
}

This is especially useful with client side directive such as @client or @mock:

query LaunchDetails($launchId: ID!) {
    launch(id: $launchId) {
      # if everything is pruned, the server is going to see an empty selection set
      isInCart @mock
      site @client
    }
  }
}

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

Projects

Project Name Supported Since Note
Apollo Client ?

Know the status of this feature? Let us know!

Apollo Kotlin main

pr

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!

Domain Graph Service (DGS) Framework ?

Know the status of this feature? Let us know!

Fusion 16.7.0

Opt-in via EnableEmptySelectionSets (pr)

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 16.7.0

Opt-in via EnableEmptySelectionSets (pr)

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!