You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

查询大量条目时GraphQL请求触发Contentful内部服务器错误

在Contentful中针对大量关联条目执行GraphQL查询时触发内部服务器错误(已设置查询限制)

我在Contentful执行GraphQL查询时,即便已经设置了查询限制,还是遇到了内部服务器错误。只有当查询条件中关联的分类和竞赛条目数量较少时,查询才能成功执行;但当分类条目数达到1500、竞赛条目数达到22005时,就会触发错误。

操作信息

Operation : {
  variables: {
    limit: 10,
    skip: 0,
    locale: 'en-GB',
    competition: '2w9CJm2sLwCUAwFjUlvxKU',
    category: '2bkKAjcRcsJWw3TVQuzNnJ'
  },
  extensions: {
    persistedQuery: {
      version: 1,
      sha256Hash: '00755eb0c141056e61b73a54cc917624d1cfa25f58a2903555fabd893f9ab46e'
    }
  },
  operationName: 'GetNewArticlesQuery',
  query: {
    __meta__: { hash: '55a8405e5ff1b9cd6d5dd1271440e6c670ba7d75' },
    kind: 'Document',
    definitions: [ [Object], [Object], [Object], [Object], [Object] ]
  }
}

查询语句

query {
    articlePageCollection(where: {
    category: { sys: { id: "xxx" } } # 1500 entries
    competition: { sys: { id: "xxx" }} # 22005 entries 
  }, limit: 12, locale: "en-GB", order: [publishDate_DESC]) {
    skip
    limit
    total
    items {
      sys {
        id
      }
      # attributes
    }
  }
}

有没有其他开发者遇到过类似的问题?

内容的提问来源于stack exchange,提问作者John williams

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.04 15:01:09