Ife
05/27/2025, 1:02 PMnormalised-cache a go as need the pagination feat however, im getting:
Unexpected JSON token at offset 153301: Encountered an unknown key 'scalarMapping' at path: $.normalizedPath
Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.
JSON input: .....lizedPath":"schema.graphqls","scalarMapping":{},"generateDat.....John O'Reilly
05/28/2025, 12:37 PMBob
05/31/2025, 1:29 AMval fakeQueryData = Query.Data(id = "blah" , name="steve")
ended up with a massing file of fakes for tests and was hoping there are some alternatives.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 1John Marshall
06/07/2025, 7:04 PMNormalizedCache.remove(pattern: String) is removed.
Which is kind of ok, but it would be nice to have a convenience to remove all cache keys associated with a specific type (or cache key scope?), which assuming type was prefixed in the cache keys, was easy to do with this functionJohn Marshall
06/11/2025, 3:07 AMJohn Marshall
06/16/2025, 4:45 AMJohn Marshall
06/17/2025, 6:19 PMCharlie Tapping
06/18/2025, 12:15 PMLukáš Kúšik
07/07/2025, 9:23 AMStylianos Gakis
07/22/2025, 3:52 PMStylianos Gakis
07/29/2025, 12:41 PMfarmerbb
08/04/2025, 11:14 PMStylianos Gakis
08/05/2025, 11:37 AMSeb Jachec
08/06/2025, 1:23 PMString.Joel Denke
08/07/2025, 6:23 AMfred
08/07/2025, 9:51 AMCreateSomethingMutation and a SomethingQuery (code in the thread) — they both return the same thing (semantically), but they're both different from each other in structure/arguments, which means this happens:
• CreateSomethingMutation is called and we cache its result
• SomethingQuery is then observed (cache only) but we then get a cache miss
our current workaround is to manually get the result from the mutation and add it to the cache as if it was the result of the query, and then everything works fine, but this seems like a common scenario so I thought I'd check if there's any better way to handle this (e.g. tweaking somehow the graphql structure?)Joel Denke
08/07/2025, 2:53 PMprivate fun ApplicationCall.context(uid: String?): ExecutionContext {
return AuthenticationContext(uid) + DatastoreContext(datastore) + CacheControlContext()
}
Will I then be able to get first parameter in my class methods that using @GraphQLQuery?
Or do I need some kind of singleton holding all deps?
I am trying to use Ktor server DI library, but I dont mind change to something else. Trying to structure my Apollo code better.John Marshall
08/15/2025, 1:42 AMSinan Kozak
08/16/2025, 5:46 PMAkash Amin
09/02/2025, 4:36 PMAnders Oedlund
09/09/2025, 6:26 PMflorent
09/12/2025, 9:52 AMandroid.newDsl=false when I set it to true, I got a crash
I am using apollo 4.3.3wasyl
09/12/2025, 10:05 PMresponseBased codegen, and I've got an error that Apollo: responseBased codegen does not support @catch.
I'm not too familiar with the current nullability handling state, so just wanted to get some clarity on what to expect moving forward — I see there are some limitations to the responseBased codegen listed here, but nullability is not thereagrosner
09/17/2025, 3:05 PMagrosner
10/02/2025, 7:13 PMgraphql node package to run introspection. The introspection result is quite a bit smaller than the kotlin one (75K lines vs 100K in kotlin) due to the comments on every type and field being multiline in kotlin vs single line in node. we're migrating to native apollo kotlin introspection using gradle.
kotlin:
"""
The globally unique identifier.
"""
id: ID!
Node:
"""The globally unique identifier."""
id: ID!
is this expected? any way to direct the apollo kotlin introspection to do the same?eStylianos Gakis
10/03/2025, 9:18 AM...
.fetchPolicy(FetchPolicy.CacheAndNetwork)
.execute()
And we were hit with the com.apollographql.apollo.exception.DefaultApolloException: The operation returned multiple items, use .toFlow() instead of .execute() exception.
Now the question is, is there something we can do regarding avoiding this, besides either being careful to just not write this or working on some intricate linting tool which might be able to catch it?
In past years I don't recall seeing this before so admittedly it is not a common scenario 😄wasyl
10/03/2025, 1:58 PMExecutableDocumentTransform that would add `id`s to selections on types that have id field in the schema, but it's not in the current selection set? I saw https://github.com/apollographql/apollo-kotlin/blob/415255a8d4203b2714924584a4e80f2283274769/tests/compiler-plugins/add-field/src/main/kotlin/hooks/TestPlugin.kt#L44 and it got me somewhere, but I'm struggling to get and pass around the type I'm currently processing (so that I can look up in schema whether it has an id field defined)Seb Jachec
10/16/2025, 3:18 PMApollo: unknown foreign schema 'cache/v0.3' for the following at the top of my updated graphqls file:
extend schema
@link(url: "<https://specs.apollo.dev/kotlin_labs/v0.5>", import: ["BuiltIn", "@mapTo"])
@link(url: "<https://specs.apollo.dev/cache/v0.3>", import: ["@connection", "@typePolicy"])
Does this require an Apollo 5.0 alpha, or is there something else going on here?agrosner
10/22/2025, 2:15 PMregisterForeignSchemas to define a custom directive. Is this the right approach? or do i also need to define it in my repos extra.graphqls file?