generateServiceApolloSources
task fails with nondescript NullPointerException
when type extension references unknown key field
#5712
Labels
Version
3.8.2
Summary
The
generateServiceApolloSources
task fails with a nondescriptNullPointerException
that doesn't immediately make clear what the issue is, when a type extension exists that references an unknown field as a key field via@typePolicy
.As mentioned in Kotlin language slack
Steps to reproduce the behavior
These steps are abstracted from what we experienced in our project:
@typePolicy
) and specify a key field that does not exist within the schema.generateServiceApolloSources
fails as per the logs below.schema.graphqls
:extensions.graphqls
:Logs
The text was updated successfully, but these errors were encountered: