You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a GraphQL schema defines an argument as optional (nullable), but the corresponding Kotlin controller method parameter is required (non-nullable), a mismatch occurs. This can lead to runtime errors if the client omits the argument, as Kotlin expects a value.
Spring GraphQL does not provide warnings during schema inspection for this mismatch, making it difficult to identify the issue during development, especially when migrating huge GraphQL schema to Spring-graphQL project.
Short overview of the problem:
Define a GraphQL schema with an optional argument: