wmlutz / gatsby-source-dynamodb

2 stars 13 forks source link

Fix paging by adding options to options.params #5

Open jacknugent opened 4 years ago

jacknugent commented 4 years ago

Addresses #3

This module fails if DynamoDB has to implement paging. You can recreate the error by trying to source from a DynamoDB that has over 1mb of data (1mb is the limit for one payload).

The failure is that params is undefined. Easy fix -- this PR simply changes params to options.params and then paging works fine.