DataStore doesn't trigger update on item updated in a lambda trigger #14247
Labels
DataStore
Related to DataStore category
pending-maintainer-response
Issue is pending a response from the Amplify team.
pending-triage
Issue is pending triage
Before opening, please confirm:
JavaScript Framework
React Native
Amplify APIs
GraphQL API
Amplify Version
v6
Amplify Categories
api, function
Backend
Amplify CLI
Environment information
Describe the bug
I have a DynamoDB trigger that updates an item, but DataStore is not properly triggering the update on the item.
I'm updating an attribute value along with
_lastChangedAt
,updatedAt
and_version
, and even tho I have n observer setup, it doesn't trigger. This is what I have for the observer:If I restart the app, after a second or so DataStore updates correctly.
Follow-up question: Is manually updating these DataStore metadata (_lastChangedAt, etc) recommended? If not, what is the right way?
Expected behavior
Print the log "Received a message " whenever the trigger updates the item on DynamoDB.
Reproduction steps
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: