You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is because there is no such method. You can't use QueryTable because it requires the JSON response to have an Items key (a dynamodb count call doesn't seem to return one) E.g. if you try some code like this:
Again, we appreciate your contribution. Please send your PR. BUT, please take this into account. Unless there is no way around it, at the moment we don't want to make backward incompatible changes. We are working on a solution that let's us move forward and refactor the libraries and clean up the code in a backward incompatible way without breaking people's code. but until then, please define new functions with new signatures as needed.
This is because there is no such method. You can't use
QueryTable
because it requires the JSON response to have anItems
key (a dynamodb count call doesn't seem to return one) E.g. if you try some code like this:You'll get an error like this:
(i.e. no
Items
key exists)I'd like to add a new method similar to https://github.com/crowdmob/goamz/blob/master/dynamodb/query.go#L38
Also, I'll move the bulk of the
CountQuery
method into a helper func to reduce duplication.Would you accept a PR with that?
The text was updated successfully, but these errors were encountered: