Skip to content

Commit 12abf7a

Browse files
phfoxerrenebrandelkatieklein
authored
The update needs the version input (#4617)
* The update needs the version input Without _version the update don't work * Update src/fragments/lib/graphqlapi/js/mutate-data.mdx --------- Co-authored-by: Rene Brandel <[email protected]> Co-authored-by: Katie Goines <[email protected]>
1 parent 1dcee51 commit 12abf7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/fragments/lib/graphqlapi/js/mutate-data.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ import * as mutations from './graphql/mutations';
114114

115115
const todoDetails = {
116116
id: 'some_id',
117+
// _version: 'current_version', // add the "_version" field if your AppSync API has conflict detection (required for DataStore) enabled
117118
description: 'Updated description'
118119
};
119120

0 commit comments

Comments
 (0)