Lightyear LogoLightyear Docs

Step 7 - Make a change to the task management collection

In order to verify that two-way sync is working, we need to make a change to the data in the collection.

Navigate to the Collections tab.

0

Click on the task management collection.

0

And click on the task model.

0

You can see all the objects that were synced from the TodoApp.

0

Let's make a change to the first task listed. Click on the "Edit" button on the task.

0

edit

0

Change the status to inProgress.

You may notice that if you type it incorrectly, the editor will indicate an error after validating against the schema.

Once you have correctly changed the status, click on the "Save" button.

0

You should see that the status has been updated to inProgress.

0

To see this change synced back to the TodoApp, navigate to the Syncs tab.

Once again, you may have to wait up to a minute to see the sync start.

0

When it does, you should see an incremental sync with one object successfully synced.

0

And if you go back to TodoApp (https://todo-app.lightyear.dev), you should see the task status has been updated.