guregu / dynamo

expressive DynamoDB library for Go
Other
1.3k stars 179 forks source link

Add Project method for BatchGet #209

Closed nightlord189 closed 1 year ago

nightlord189 commented 1 year ago

Although the BatchGet has a projection field and the logic to use it, it looks like it can never be set by the calling code. I added a Project method similar to Query.

guregu commented 1 year ago

Thanks, looks good to me. I'll try to merge this over the weekend

guregu commented 1 year ago

Added a test and a little tweak and it looks like it's working. Just released in v1.18.0. Let me know if you find any problems. Thanks again.