Closed JosselinTILLAY closed 6 months ago
Ok, i found why. My guid field was in second position, not first. If i drop everything and change the column order, it work.
Hey @JosselinTILLAY. I'm curious about the column ordering issue you saw. What did the full call to db.synchro_entity.update()
looked like? Our client APIs work with named fields so column ordering is not an issue, generally speaking.
Here is my update :
db.synchro_entity.update({
data: {
label: label
},
where: {
guid: synchro_entity.guid,
},
});
where synchro_entity
come from a liveMany from a parent component.
Hello everyone.
I have a very simple entity name "synchro_entity" with 2 fields : label and guid. Label is a text and guid is an uuid.
I made a simple react-native app to try to sync it between a local SQLite and a remote PG. The app just display all "synchro_entity" and allow updating the label.
For now, I have only one entity with "e1" as label, and I want to change it.
When I call
db.synchro_entity.update
, the update is successfull locally (if i kill the app and return on it, the changes are saved) but the remote database isn't updated.In the db logs, I have this : ERROR: invalid input syntax for type uuid: "e1"
Here is the full log :
It look like it try to match the guid with the label.
The issue don't seem to come from the React-Native app because the local change is successfull.