最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

graphql-codegen error Not all operations have an unique name - Stack Overflow

programmeradmin0浏览0评论

mutation CreateFmfirmwarecompliance($user1: UserType!, $user2: UserType!,) {
    createFmfirmwarecompliance(input: $user1) {
      description
      name
   }

    createFmfirmwarecompliance(input: $user2) {
      description
      name
    }

}

mutation CreateFmfirmwarecompliance($user1: UserType!, $user2: 
   UserType!,) {
    m1: createFmfirmwarecompliance(input: $user1) {
      description
      name
    }

  m2: createFmfirmwarecompliance(input: $user2) {
    description
    name
  }

}

I need to send 2 mutation in single mutation object. I tried 2 ways for genrating the Apollo mutation objects but I am getting error in both.Though using the second way I am able to send the mutation successfully in doorway.

发布评论

评论列表(0)

  1. 暂无评论