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
a simple if solves it, but I don't understand why it's getting String the first time:
if (int.tryParse("${response.payload["codigo_i"]}") != null){
response.payload["codigo_i"] = int.parse("${response.payload["codigo_i"]}");
}
👟 Reproduction steps
"flutterSdkVersion": "2.10.4"
appwrite: ^4.0.2
Listen for changes to a collection with:
realtime.subscribe(['collections.your_collection.documents']);
Create a new document by flutter.
When the client receives this new document, for some reason the int field is arriving as String.
👍 Expected behavior
The field should arrive at the client as int
👎 Actual Behavior
The first time, only inside the subscription.stream.listen the field is received as String
🎲 Appwrite version
Version 0.13.x
💻 Operating system
Linux
🧱 Your Environment
Default environment v:0.13.4.304
Flutter 2.10.4
flutter web, windows and android
👀 Have you spent some time to check if this issue has been raised before?
🏢 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: