Skip to content

Cannot use 'expr.Names()' (type map[string]*string) as the type map[string]string #4364

Answered by jasdel
BElluu asked this question in Q&A
Discussion options

You must be logged in to vote

@BElluu from your description of the issue it sounds like you're trying to use the v1 SDK's expression package with the v2 SDK's dynamodb#QueryInput type. The types and utilities in the v1 SDK are not compatible with the v2 SDK.

I think you want to use the v2 SDK's expression package instead, github.com/aws/aws-sdk-go-v2/feature/dynamodb/expression. If you're using helper tools like goimports or similar IDE tools, its possible these are adding the wrong version SDK as import.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by vudh1
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants