From 13381ba5a961872c137f62674026dd9a2bd39b26 Mon Sep 17 00:00:00 2001 From: JPT2 Date: Wed, 12 Dec 2018 11:19:26 -0500 Subject: [PATCH] Typo fixes Resolving issue where using the provided secondary index code gave: TypeError: Converting circular structure to JSON Caused by having lowercase k for rangeKey and hashKey --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1557272..4cb33d2 100644 --- a/README.md +++ b/README.md @@ -715,7 +715,7 @@ First, define a model using a local secondary index ```js var BlogPost = vogels.define('Account', { hashKey : 'email', - rangekey : 'title', + rangeKey : 'title', schema : { email : Joi.string().email(), title : Joi.string(), @@ -724,7 +724,7 @@ var BlogPost = vogels.define('Account', { }, indexes : [{ - hashkey : 'email', rangekey : 'PublishedDateTime', type : 'local', name : 'PublishedIndex' + hashKey : 'email', rangeKey : 'PublishedDateTime', type : 'local', name : 'PublishedIndex' }] }); ```