From eb897c3224f2e7e2e3bad18e7d8737584b958d03 Mon Sep 17 00:00:00 2001 From: Dinanath Date: Sat, 8 Feb 2020 18:52:28 +1100 Subject: [PATCH] Typo fix in the example code `unmarshallItem` needs a marshalled object to unmarshal. --- packages/dynamodb-auto-marshaller/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/dynamodb-auto-marshaller/README.md b/packages/dynamodb-auto-marshaller/README.md index 48b7f685..d90ece4a 100644 --- a/packages/dynamodb-auto-marshaller/README.md +++ b/packages/dynamodb-auto-marshaller/README.md @@ -56,7 +56,7 @@ const marshalled = marshaller.marshallItem(original); // the output of `.marshallItem` can be converted back to a JavaScript type with // `.unmarshallItem` -const unmarshalled = marshaller.unmarshallItem(original); +const unmarshalled = marshaller.unmarshallItem(marshalled); // With a few caveats (listed below), the unmarshalled value should have the // same structure and data as the original value.