使用中继graphql的嵌套分页

Seb*_*mra 6 relay graphql

目前,嵌套分页的中继方法存在问题。以下示例说明了我的意思:

{
  "data": {
    "locations": {
      "edges": [
        {
          "node": {
            "id": "Location_254"
          }
        },
        {
          "node": {
            "id": "Location_247"
          }
        },
        {
          "node": {
            "id": "Location_217"
          }
        },
      ]
    }
  }
Run Code Online (Sandbox Code Playgroud)

在这里,我有3个查询返回的位置。现在,我想对这些位置进行分页,并看看它们的“历史”。

query {
  locations {
    edges {
      node {
        history(
          first:10
          after:"eyJzbm9vemVJZCI6Mzg3fQ=="
        )
      }
    }
  }
}
Run Code Online (Sandbox Code Playgroud)

这将在指定的游标之后分页10个结果。我的问题是,此游标特定于从中获取的位置。此后所指的光标仅适用于其来自的位置。

嵌套分页试图在此处的所有位置上进行分页,而实际上,正在使用的光标是从特定位置获取的。

我看错了吗,还是有更好的方法来解决这个问题?

问候,塞巴斯蒂安