Behavior for @inaccessible
and @internal
in combination with unions, interfaces and enum values. #136
Open
Description
Example 1
union SearchResult = User | Group
type User @inaccessible { id: ID! }
type Query {
search(text: String!): SearchResult
}
enum SearchResult
{
FOUND
NOT_FOUND @inaccessible
}
type Query {
search(text: String!): SearchResult
}
what does apollo do in this case?
a) Composition error as we could not have runtime errors (when user is returned)
b) Composition warning and returning null at runtime
c) No composition error and returning null at runtime
d) No composition error and throwing error at runtime (edited)
Metadata
Assignees
Labels
No labels