Skip to content

Behavior for @inaccessible and @internal in combination with unions, interfaces and enum values. #136

Open
@michaelstaib

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions