I'm struggling to set up my first backend synchronization. I've double- and triple-checked my configurations against the documentation, but still I'm getting the same unexpected behavior. Here's where I'm at:
I've successfully initialized a client-side db
I've successfully connected my pullChanges function to an endpoint on my api
I've successfully returned a payload back to the client that conforms to the opinionated watermelon sync api
Here's where it gets weird: I'm seeing new records populate the table in my watermelon instance, however, they only have _raw data. The model instance properties are all null
Additionally and perhaps not surprisingly, unique constraints are not being observed, so each sync call leads to duplicate records on the client side
Take a look at this screenshot for reference:
Here are a few of my configurations for reference:
I understand that tracking separate remote/client ids is not recommended, but I think it will be necessary for my use case. I'm only asking for support on correctly persisting my model in the backend sync process. I'd be super appreciative if you can help me out!! Thanks in advance 🙏
Hi there,
I'm struggling to set up my first backend synchronization. I've double- and triple-checked my configurations against the documentation, but still I'm getting the same unexpected behavior. Here's where I'm at:
pullChanges
function to an endpoint on my api_raw
data. The model instance properties are allnull
Take a look at this screenshot for reference:
Here are a few of my configurations for reference:
I understand that tracking separate remote/client ids is not recommended, but I think it will be necessary for my use case. I'm only asking for support on correctly persisting my model in the backend sync process. I'd be super appreciative if you can help me out!! Thanks in advance 🙏