Ife
06/06/2025, 10:49 AMcom.apollographql.apollo:apollo-normalized-cache-sqlite v4.0.0 which matches apollo version
Apollo: unhandled exception
java.lang.Exception: Unable to read a record from the database
at com.apollographql.apollo.cache.normalized.sql.SqlNormalizedCache.loadRecord(SqlNormalizedCache.kt:25)
Caused by: android.database.sqlite.SQLiteException: Can't downgrade database from version 3 to 1bod
06/06/2025, 12:26 PMbod
06/06/2025, 12:27 PMIfe
06/06/2025, 1:00 PMIfe
06/06/2025, 3:50 PMapolloStore.writeOperation?
Actually, was able to write, but the
messages({"after":"","first":20,"receiver_id":12,"sender_id":25})
I attempted it but couldnt find the data once written It still maintained the old databod
06/06/2025, 3:52 PMIfe
06/06/2025, 4:00 PMedges is being updated correctly. my guess however is that the first argument in the paginated when querying is not dynamic, it'll always look for first:20 for example and there's nothing of such in the cache db when i used the intelliJ viewer.Ife
06/06/2025, 4:01 PMbod
06/06/2025, 4:13 PMmessages({"receiver_id":12,"sender_id":25}) field in the cache. I.e. after and first should be omitted.Ife
06/06/2025, 4:21 PMfirst:20 arg from the actual query that way it returned the updated data each time.Ife
06/06/2025, 4:21 PMIfe
06/06/2025, 4:28 PMmessages count when first is removed 😀Ife
06/07/2025, 9:06 PM*.wal file to be immediately sync'd with the actual db on ios?
As you prob know, writes on iOS goes into *.wal` file whilst preserving the actual db for reads . This doesnt immediatly sync up which leads to two sets of data. At runtime, the wal file is not available for reads, causing app to fetch from network.Ife
06/07/2025, 9:07 PMapolloStore api, cant see anything explicitly enforcing thisIfe
06/07/2025, 9:08 PMbod
06/08/2025, 7:51 AM