1 Answer
- Newest
- Most votes
- Most comments
0
You are confusing between the syntax of Query
and Scan
.
When building a Query
command you should use WithKeyCondition(KeyCond)
:
builder := expression.NewBuilder().WithKeyCondition(keyCond).WithProjection(proj)
and when building a Scan
you should use WithFilter(filt)
:
expr, err := expression.NewBuilder().WithFilter(filt).WithProjection(proj).Build()
answered 2 years ago
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 years ago
I'm not a Go programmer but I wonder if verbose logging the wire traffic might give you insights on what your code is causing to be sent: https://aws.github.io/aws-sdk-go-v2/docs/configuring-sdk/logging/