Skip to content
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

[DynamoDB] Table.GetItem does not support bool type. #328

Open
anphung opened this issue Jan 27, 2015 · 1 comment
Open

[DynamoDB] Table.GetItem does not support bool type. #328

anphung opened this issue Jan 27, 2015 · 1 comment

Comments

@anphung
Copy link

anphung commented Jan 27, 2015

It omits boolean key-value pair.

For example, in dynamodb table, we have a row with ID as HashKey, Name as RangeKey:

Id (String): "1"
Name (String): "Example"
Male (Boolean): True
Age (Number): 100

Using Table.GetItem

key := &dynamodb.Key {
        HashKey: "1"
        RangeKey: "Example"
}
item, err := myTable.GetItem(key)

In item, there are only Id, Name, Age fields. There is no Male field.
I think we can fix it here:
github.com/crowdmob/goamz/dynamodb/item.go: func parseAttributes

@alimoeeny
Copy link
Contributor

Yeah, as far as I know, only S (string) type is supported. Read this: https://github.com/crowdmob/goamz/issues/308

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants