0

我进行了查询以获取自定义帖子类型中的自定义分类的术语,但在我使用 Apollo Client 的应用程序中,这些术语为空,但在操场 IDE 中它返回正常。

链接图片查询 Playground IDE

https://imgur.com/OTRXJS5

链接图片返回

https://imgur.com/QapGW3w

查询 GraphQL

query MyQuery {
  post: newBy(slug: "new-slug-test") {
    newId
    slug
    link
    terms {
      nodes {
        ... on CategoryNew{
          news(first: 8, where: {notIn: "1633578"}) {
            nodes {
              slug
              title
              date
            }
          }
        }
      }
    }
  }
}
4

0 回答 0