goamz
goamz copied to clipboard
[DynamoDB] Table.GetItem does not support bool type.
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
Yeah, as far as I know, only S (string) type is supported. Read this: https://github.com/crowdmob/goamz/issues/308