【问题标题】:Get Count Attribute in AWS Appsync在 AWS Appsync 中获取计数属性
【发布时间】:2018-11-12 15:55:58
【问题描述】:

我发现在 dynamodb 中有“scannedCount”和“count”,我可以在 Appsync 中得到scannedCount,但不能得到Count

query getUsers{
     listUsers(filter:{gender:{eq:'m'} limit:10){
       items{
         name
       }
       nextToken
       count
       Count
       scannedCount
     }
}

结果是这样的:

{
  "data": {
    "listUsers": {
      "items": [
        {"name": "jenny"},
        {"name": "alice"},
        {"name": "bella"},
        {"name": "april"}
      ],
      "nextToken": null,
      "count": null,
      "Count": null,
      "scannedCount": 4,
    }
  }
}

如何在 appsync 中获取计数属性?

非常感谢 鲁道夫

【问题讨论】:

    标签: amazon-dynamodb aws-appsync


    【解决方案1】:

    您可以访问“scannedCount”,但不能访问“count”,目前无法通过 AppSync 访问它。我会将其记录为功能请求。

    【讨论】:

      猜你喜欢
      • 2012-08-17
      • 1970-01-01
      • 2020-04-12
      • 2021-12-03
      • 2023-01-31
      • 2018-08-06
      • 2021-06-08
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多