Skip to content

com.apollographql.apollo.exception.JsonDataException: Expected BEGIN_OBJECT but was NULL #168

Open
@sonatard

Description

@sonatard

After making the following change, the error below occurred:

-    val apolloNormalizedCacheIncubating = "0.0.4"
-    implementation("com.apollographql.cache:normalized-cache-incubating:$apolloNormalizedCacheIncubating")
+    val apolloNormalizedCache = "1.0.0-alpha.2"
+    implementation("com.apollographql.cache:normalized-cache:$apolloNormalizedCache")
com.apollographql.apollo.exception.JsonDataException: Expected BEGIN_OBJECT but was NULL at path data.viewer.application.mobileApp
  • extensions.xxx.graphqls:
extend type Application @nonnull(fields: "mobileApp")
  • build.gradle.kts:
schemaFiles.from("src/main/java/com/xxx/android/xxx.graphqls", "src/main/java/com/xxx/android/extensions.xxx.graphqls")

According to our server logs, data.viewer.application.mobileApp is not null.

Has there been a specification change regarding the @nonnull directive?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions