You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no mention of ExclusiveStartKey. Not too bad to fix this, just need to add ExclusiveStartKey: params.ExclusiveStartKey if you want it to adhere to the dynastyjs documentation
This problem pulled my project to a screetching halt and it's something I have to get out the door. If anyone else is in a similar situation, feel free to use my fork until Victor gets this sorted out. You can do this by changing your package.json file to say "dynasty":"git://github.com/timhuff/dynasty-1.git" and then running an npm install. My fork is the same exact thing (as of the time of this writing) with the only difference being that you can run table.scan({ExclusiveStartKey:{someHashKey: 1234}}) and it will actually do what the documentation says it'll do. You can also add to that object someRangeKey, if you'd like. I would recommend constraining the ExclusiveStartKey to only contain properties that are keys.
Hello Victor,
It seems that scan ignores
{ExclusiveStartKey: <startkey>}
when passed in as an argument, I took a deeper look into this and I found the followinghttps://github.com/victorquinn/dynasty/blob/master/src/lib/aws-translators.coffee#L106
There is no mention of ExclusiveStartKey. Not too bad to fix this, just need to add
ExclusiveStartKey: params.ExclusiveStartKey
if you want it to adhere to the dynastyjs documentationAlso scan should return a LastEvaluatedKey, however when doing
https://github.com/victorquinn/dynasty/blob/master/src/lib/aws-translators.coffee#L128
The LastEvaluatedKey is not passed to the user as it exists in
data.LastEvaluatedKey
,Ideally, this should be doing something along the lines of
This way the fromDynamo function can remain as is and the information can propagate through to the user
I deduced this information based on the debugger
The text was updated successfully, but these errors were encountered: