cdk-amplify | Manage Amplify resources using the AWS Cloud Development Kit | AWS library
kandi X-RAY | cdk-amplify Summary
kandi X-RAY | cdk-amplify Summary
POC - Manage Amplify resources using the AWS Cloud Development Kit (aws-cdk)
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of cdk-amplify
cdk-amplify Key Features
cdk-amplify Examples and Code Snippets
Community Discussions
Trending Discussions on cdk-amplify
QUESTION
I have tried to modify the schema to add a ingredients String line. From this code I am pretty much following it to a tee https://github.com/dabit3/next.js-cdk-amplify-workshop you can look in the backend and frontend folders to see all the code
I have built and deployed with cdk
My error is at the bottom
Any help would be great
Here's the relevant parts of the schema in the backend
...ANSWER
Answered 2020-Dec-20 at 19:41It seems like there are some debugging details missing from your question. For example, your error message displays the results of a listPosts
query, but you don't show that being called anywhere. Also, that query apparently returns something, so it would be good to see the database entries backing it.
If I had to guess, you have entries in your dynamo table that have missing ingredients
fields, which is why you see an error: the query is trying to marshal missing/null fields to a return type of String!
, which is by definition non-nullable.
Also, I'm not sure you should be setting id
directly on your post
state object. Better to copy the object and set the property on the copy, esp since you're just using it as a parameter.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cdk-amplify
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page