Graphql 无法为不可为null的字段标记返回null.links

Graphql 无法为不可为null的字段标记返回null.links,graphql,prisma-graphql,Graphql,Prisma Graphql,我有如下的数据模型 type Tag { id: ID! name: String! icon: String description: String! links: [Link!]! } type Link { id: ID! createdAt: DateTime! description: String! url: String! tags: [Tag!]! } tags(name:"tag1") { id name li

我有如下的数据模型

type Tag {
  id: ID!
  name: String!
  icon: String
  description: String!
  links: [Link!]!
}

type Link {
  id: ID!
  createdAt: DateTime!
  description: String!
  url: String!
  tags: [Tag!]!
}
tags(name:"tag1") {
    id
    name
    links {
      id
      description
    }
  }
我想根据名称查询所有标签,我可以通过下面的查询来完成

   tags (name:"tag1"){
    id
    name
  }
此查询有效
但是对于同一个查询,我想返回与标记名关联的所有链接,如下所示

type Tag {
  id: ID!
  name: String!
  icon: String
  description: String!
  links: [Link!]!
}

type Link {
  id: ID!
  createdAt: DateTime!
  description: String!
  url: String!
  tags: [Tag!]!
}
tags(name:"tag1") {
    id
    name
    links {
      id
      description
    }
  }
执行此操作时,我遇到以下错误

"message": "Cannot return null for non-nullable field Tag.links.",
此查询的解析程序

const tags = await context.prisma
        .tags({name: args.name
        })

请包括相关的解析器code@DanielRearden更新请包括相关的解析器code@DanielRearden更新