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
Copy file name to clipboardExpand all lines: installation/app-backend-setup/writing-client-changes.mdx
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,14 +3,16 @@ title: "Writing Client Changes"
3
3
description: "Your app backend needs to expose an API endpoint to write changes to your backend database that are received from the PowerSync client."
4
4
---
5
5
6
+
<Info>
7
+
The backend receives the changes from your `uploadData` function in the `PowerSyncBackendConnector` on the client.
8
+
</Info>
9
+
6
10
This could be:
7
11
8
12
1. A single endpoint accepting a batch of changes from the client, with minimal client-side processing.
9
13
2. Separate endpoints based on the types of changes.
10
14
3. A combination of the above.
11
15
12
-
For details of the client-side interface to your backend, see [Integrating With Your Backend](/installation/client-side-setup/integrating-with-your-backend).
13
-
14
16
<Warning>
15
17
It's important that your endpoint be blocking/synchronous with underlying Postgres or MongoDB writes.
16
18
@@ -63,3 +65,11 @@ For details on handling write conflicts, see:
63
65
horizontal
64
66
/>
65
67
</CardGroup>
68
+
69
+
### Example implementations
70
+
71
+
We have some example backend implementations that you can use as a guide for your implementation:
0 commit comments