Closed NiksanJP closed 1 year ago
So basically I created a new table using "Create Resource" button as a test which actually worked.| There is something with graphql not liking other tables ahaha
Mutations and Queries stopped working for me as well. I'm using a lambda function with my own stuff behind it. Was working just fine.
Mutations and Queries stopped working for me as well. I'm using a lambda function with my own stuff behind it. Was working just fine.
Try making the whole DB again from using the "Create Resource" Button.
It looks like AWS had a refresh on its functions (maybe) and it uses $ctx.args.input
instead of $ctx.args
@NiksanJP Do you queries/mutations work localhost? Mine actually works localhost, but not once pushed to Amplify. So odd. It feels like a permission issue changed.
@NiksanJP Do you queries/mutations work localhost? Mine actually works localhost, but not once pushed to Amplify. So odd. It feels like a permission issue changed.
Nope, mine were fully on server side. Plus, when I used AWS UI, the queries went through without fail hahaha.
Glad you were able to resolve this. Appears to have been an issue with the Data Source and/or resolvers you have configured in the service, which are outside the purview of this library.
Do you want to request a feature or report a bug? Bug
What is the current behavior? When I run a mutation from my react-native, all the args are turn to "NULL": true. But all the extra ones like Username from identity stay the same!
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. The $ctx.args should be able to add proper data into dynamodb
What is the expected behavior? The Dynamodb table should not have null values
Which versions and which environment (browser, react-native, nodejs) / OS are affected by this issue? Did this work in previous versions? React-native, when I woke up the next morning I stopped working, everything was working fine until last night (no changes)
SCHEMA
Mutation
I also tried using
![image](https://user-images.githubusercontent.com/40626274/165955988-20423ba3-41ef-4547-a544-78bff7b6303b.png)
$util.dynamodb.toMapValuesJson($context.arguments)
but it does not seem to work!$util.dynamodb.toMapValuesJson($ctx.args
dynamodb output:$util.dynamodb.toMapValuesJson($context.arguments)
output:Native Code
Just did some printing, the query that is going to be executed:
From Web![image](https://user-images.githubusercontent.com/40626274/166084817-98297810-e047-487e-8b1d-25a8e534c78d.png)
Logs![image](https://user-images.githubusercontent.com/40626274/166085570-4e78f888-5393-4a83-aeb2-6412a945afe2.png)
This all worked until last night and suddenly stopped log-events-viewer-result.csv working! No Error Message or anything! But when running on App sync's platform it runs fine!