multimeric / AmplifyCountDirective

Count the number of items in your DynamoDB tables using Amplify
12 stars 1 forks source link

"ExpressionAttributeNames must not be empty" #3

Closed multimeric closed 2 years ago

multimeric commented 2 years ago

A query like this:

{
  countFoo(filter: {})
}

Will result in:

{
  "data": {
    "countFoo": null
  },
  "errors": [
    {
      "path": [
        "countFoo"
      ],
      "data": null,
      "errorType": "Lambda:Unhandled",
      "errorInfo": null,
      "locations": [
        {
          "line": 2,
          "column": 3,
          "sourceName": null
        }
      ],
      "message": "ExpressionAttributeNames must not be empty"
    }
  ]
}