Enum is used as both an input and output but is inconsistently defined across inclusive subgraphs
When you receive an error likeEnum X is used as both an input and output but is inconsistently defined across inclusive subgraphs it means you are publishing a change to an enum that is used as both an input and an output.
The error lists:
- each subgraph that defines the enum but does not define every enum value, with the missing values
- each subgraph that uses the enum as an input, with the coordinates of the arguments, input fields, and directive arguments
- each subgraph that uses the enum as an output, with the coordinates of the fields
- in the origin subgraph, add @inaccessible to Enum.NewValue
- in each other subgraph that defines the enum, define Enum.NewValue (no directive)
- after you have published the change to all subgraphs that define that enum, remove @inaccessible from the origin subgraph and publish the change