Skip to content

Can I return a union type on outputFields? #367

@noghartt

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.

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