Nozbe / WatermelonDB

🍉 Reactive & asynchronous database for powerful React and React Native apps ⚡️
https://watermelondb.dev
MIT License
10.62k stars 600 forks source link

Support for numeric ids #1793

Open Protonosgit opened 6 months ago

Protonosgit commented 6 months ago

When using the sync feature of with a backend that relies on integer is the sync is rejected if the number is not returned as a string. -> Maybe autoconvert all numbers to string.

KrisLau commented 6 months ago

You can probably just convert the intergers to strings on your backend when returning the data to your frontend during sync?

Protonosgit commented 6 months ago

Thats what im currently doing but it took me some time to update everything because of the amount of tables from multiple sources I want to keep in sync. Having the option to use numbers or at least autoconvert to strings would be really helpful.