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
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.11.1
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
For some reason when I insert an object in my table it works well but I also get an error message.
And when I query a particular object I get the same error. Hopefully somebody can see what I'm doing wrong. I'm using graphql from amplify.
The problem is being cause by the category field of Service, because when I remove it or change it to a String in the schema everything goes well.
I also noted that when I query a particular service I get the same error. I don't know why.
Use the schema included in this post.
Record an object using the function included in this post.
Project Identifier
90e248fdd5b64aad8ace95f42eba4110
Log output
# Put your logs below this line
"Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Category' (/createService/category/createdAt)" "Cannot return null for non-nullable type: 'AWSDateTime' within parent 'Category' (/createService/category/updatedAt)
Hi @Themrpie, can you check that the Category record with id e4322408-91f1-7076-0e4f-e5a81dt602b6 that the Service belongs to, has createdAt and updatedAt fields set by querying it?
Hey 👋 , This issue is being closed due to inactivity. If you are still experiencing the same problem and need further assistance, please feel free to leave a comment. This will enable us to reopen the issue and provide you with the necessary support.
This issue is now closed. Comments on closed issues are hard for our team to see.
If you need more assistance, please open a new issue that references this one.
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.11.1
What operating system are you using?
Mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
For some reason when I insert an object in my table it works well but I also get an error message.
And when I query a particular object I get the same error. Hopefully somebody can see what I'm doing wrong. I'm using graphql from amplify.
The problem is being cause by the category field of Service, because when I remove it or change it to a String in the schema everything goes well.
I also noted that when I query a particular service I get the same error. I don't know why.
Expected behavior
I should not get an error
Reproduction steps
Create app with
npx create-expo-app appname -t expo-template-blank-typescript
install amplify with these instructions:
https://docs.amplify.aws/react-native/start/getting-started/setup/#create-a-new-project
Use the schema included in this post.
Record an object using the function included in this post.
Project Identifier
90e248fdd5b64aad8ace95f42eba4110
Log output
Additional information
This is my schema:
And this is how I'm recording into the db:
Codegen auto generates this function thats being used by addJob function:
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: