graphql-client icon indicating copy to clipboard operation
graphql-client copied to clipboard

关于请求返回on Type{}怎么用?

Open BreadKid opened this issue 2 years ago • 2 comments

比如请求,这个工具怎么用?

mutation a($demo: String!) {
  updateCustomer(demo: $demo) {
    ... on MutationSuccess {
      result
    }
    ... on MutationError {
      errorCode
    }
  }
}

BreadKid avatar Sep 29 '22 03:09 BreadKid

同问,有方式了么

yangzhiw avatar Feb 20 '23 07:02 yangzhiw

这样应该是能满足这个格式 ResultAttributtes classAttributte = new ResultAttributtes("... on MutationSuccess");

MountCloud avatar Feb 20 '23 07:02 MountCloud