gatsby-source-dynamodb's People
Forkers
housser techmachineninja dragonslayer381 jacknugent thwhk strong-roots-capital shankarcrampete exc-bad-access laurence-howard alanwolman duytd jdmr carnextdoorgatsby-source-dynamodb's Issues
`nodeId` is the same for all records if the source record in DynamoDB doesn't contain an `id` field (or `id` isn't a unique field)
Thanks for the plugin first of all! It's great to see so many slick integrations for Gatsby like this, and is really exciting me about the design of Gatsby.
I've just been having an issue consuming some Dynamo tables of mine though. I've noticed that if your source records in DynamoDB don't have an id
field, then when you try to generate a UUID for the node we end up getting the same id
for each node, since we end up just passing dynamodb-
in to createNodeId
each time. This results in the nodes clobbering each other.
To get around this for the short term I've just started using nodeContentDigest
in cases when item.id
is null, but I'm pretty new to the Gatsby ecosystem, so not sure if this is a reasonable approach or not. It seems that the only requirements on createNode
is that id
be unique, which nodeContentDigest
seems like it would satisfy.
How to set multiple tables?
I have no clue how to set multiple tables tho, do you have any samples?
User Error
I am getting the following error when I try to run develop. I assume it is user error, however I can't find any starters or examples for this plugin. If you could point me in the right direction, I would be happy to write up a blog post you can link to in your read me if you are interested.
ReferenceError: params is not defined
at Response.onScan (C:\git\gatsby-starter-default\node_modules\gatsby-source-dynamodb\gatsby-node.js:47:11)
at Request. (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:364:18)
at Request.callListeners (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\sequential_executor.js:106:20)
at Request.emit (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:683:14)
at Request.transition (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\state_machine.js:26:10
at Request. (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:38:9)
at Request. (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:685:12)
at Request.callListeners (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\sequential_executor.js:116:18)
at Request.emit (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\sequential_executor.js:78:10)
at Request.emit (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:683:14)
at Request.transition (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\request.js:22:10)
at AcceptorStateMachine.runTo (C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\state_machine.js:14:12)
at C:\git\gatsby-starter-default\node_modules\aws-sdk\lib\state_machine.js:26:10
What should the valiue for typename be?
Plugin config:
{
resolve: 'gatsby-source-dynamodb',
options: {
typeName: 'payload',
accessKeyId: process.env.AWS_ACCESS_KEY_ID,
secretAccessKey: process.env.AWS_SECRET_ACCESS_KEY,
region: 'us-west-2',
params: {
TableName : "myTable"
}
}
},
Any help would be appreciated.
Thanks
Edit: code formatting
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.