fsprojects / FSharp.AWS.DynamoDB

F# wrapper API for AWS DynamoDB
MIT License
58 stars 18 forks source link

Question: how to delete a record without the table key? #28

Closed thomasd3 closed 3 years ago

thomasd3 commented 3 years ago

When I put data in a table, I provide a hash key and then I get a table key once the data is inserted.

But I am not able to keep that table key.

Is it possible to build it from the hashkey? or do I need to do a query to find it (and if so, how does it work?)

samritchie commented 3 years ago

Yes, use TableKey.Hash to construct a TableKey from a hash (or TableKey.Combined if you also have a range key)