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
Basically, via redux-sagas, we listen for CRUD_CREATE_SUCCESS, CRUD_UPDATE_SUCCESS, CRUD_DELETE_SUCCESS and fire off new dataProvider calls depending on what we're trying to do. See here.
Delete would be easy - in the example app, there is a PostCategory connection (many to many) with a queryField postCategorysByPost. You'd simple query this with the postId, then use dataProvider.delete to delete each connection.
Update is a little trickier:
get all connections via postCategorysByPost queryField
separate them into two lists:
those that exist in the form values that don't in the DynamoDB record (create them)
those that don't exist in the form values but do in the DynamoDB record (delete them)
In the example, a post can have many editors.
The text was updated successfully, but these errors were encountered: