Seb Jachec
04/30/2025, 12:42 PMNullPointerException
crash in ConnectionMetadataGenerator.metadataForObject
that I'm having a hard time understanding π§΅Seb Jachec
04/30/2025, 12:43 PMCacheManager
that I'm providing when building my ApolloClient
, using ConnectionMetadataGenerator(Pagination.connectionTypes)
and a ConnectionRecordMerger
, alongside both Apollo's in-memory and SQLite caches chained together. I've got a number of schema extensions (happy to share in full), but I thought the key part would be that I've specified connectionFields
on our Query
type via a @typePolicy
directive.
Wrapping ConnectionMetadataGenerator
and forwarding metadataForObject
so that I can examine the obj
and context
being passed in, I can see a large number of null
objects.
I'm not exactly sure how to debug this exception and crash though β I'd love any pointers as I'm probably making a mistake somewhere!bod
04/30/2025, 12:47 PMSeb Jachec
04/30/2025, 12:54 PMbod
04/30/2025, 12:57 PMbod
04/30/2025, 12:58 PMSeb Jachec
04/30/2025, 12:59 PMSeb Jachec
04/30/2025, 12:59 PMSeb Jachec
04/30/2025, 4:03 PMbod
04/30/2025, 4:06 PMSeb Jachec
04/30/2025, 4:27 PMbod
04/30/2025, 4:28 PMSeb Jachec
05/01/2025, 10:19 AMdefaultTags
aren't fetched in the calendar fragment (calendar.graphql
), or calendar
isn't fetched as part of the event fragment (event.graphql
) 'upstream' from that when querying events, we don't see a NullPointerException
bod
05/01/2025, 10:30 AMSeb Jachec
05/01/2025, 11:20 AMbod
05/02/2025, 9:42 AMSeb Jachec
05/02/2025, 10:03 AMSeb Jachec
05/06/2025, 2:22 PMbod
05/06/2025, 2:23 PMbod
05/06/2025, 2:23 PMSeb Jachec
05/06/2025, 2:24 PM1.0.0-alpha.1
normalized cache artifacts with Apollo 4.2.0, that hasn't changed since I started migrating overbod
05/06/2025, 2:25 PMSeb Jachec
05/06/2025, 2:26 PM