New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mapping entire struct to DynamoDB #100

Closed
kaihendry opened this Issue Jan 17, 2018 · 2 comments

Comments

Projects
None yet
3 participants
@kaihendry
Copy link

kaihendry commented Jan 17, 2018

~$ go version ; git -C ~/go/src/github.com/aws/aws-sdk-go-v2 describe --all
go version go1.9.2 linux/amd64
tags/v2.0.0-preview.2

What issue did you see?

I find it cumbersome to maintain a mapping between my struct and dynamodb with expression.Set. Is there a way to map/marshal the whole struct to dynamodb? I can't see how that's done with https://godoc.org/github.com/aws/aws-sdk-go-v2/service/dynamodb/expression

@xibz

This comment has been minimized.

Copy link
Contributor

xibz commented Jan 17, 2018

Hello @kaihendry, thank you for reaching out to us. If you are just looking to just upload a whole structure, then using the dynamodbattribute package is the best approach. The expressions package was meant for ease of use for expressions. Please let us know if you have anymore questions regarding this.

@xibz xibz added the guidance label Jan 17, 2018

@jasdel

This comment has been minimized.

Copy link
Member

jasdel commented Feb 26, 2018

Hi @kaihendry let us know if you're still running into this issue, or have additional questions about the dynamodbattribute package.

@jasdel jasdel closed this Feb 26, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment