apollographql / federation-jvm

JVM support for Apollo Federation

Home Page:https://www.apollographql.com/docs/federation/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

_service query should return non-nullable _Service type

dariuszkuc opened this issue · comments

Per the subgraph specification:

A new field must be added to the query root called _service. This field must return a non-nullable _Service type. The _service >field on the query root must return SDL which includes all of the service's types (after any non-federation transforms), as well as >federation directive annotations on the fields and types. The federation schema modifications (i.e. new types and directive >definitions) should not be included in this SDL.

Schema transformer currently creates the field returning nullable type

_service: _Service