Skip to content

Can I return a union type on outputFields? #367

Description

@noghartt

Is there a way that I can return a union type on outputFields? I want to do something like it:

mutation userRegister($input: UserRegisterInput!) {
  userRegister(input: $input) {
    ... on UserRegisterResultSuccess {
      user {
        id
      }
    }
    ... on Error {
      message
    }
  }
}

I would like to know if there's a way to do it on outputFields of a mutation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

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