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
Spring GraphQL provides a default type resolver that uses simple class names to map from Java types to schema types.
As discussed with developers, some teams would like to have a consistent naming strategy and apply suffixes to Java class names:
type Product {
sku: ID!
}
type Address {
streetName: String
}
The corresponding Java classes would be ProductGraphQlResponse and AddressGraphQlResponse - a common suffix applied to all classes used as GraphQl types.
This issue is about documenting how to configure a custom ClassNameTypeResolver on the GraphQlSource so that it's achieving that naming strategy with a name extractor.
The text was updated successfully, but these errors were encountered:
Spring GraphQL provides a default type resolver that uses simple class names to map from Java types to schema types.
As discussed with developers, some teams would like to have a consistent naming strategy and apply suffixes to Java class names:
The corresponding Java classes would be
ProductGraphQlResponse
andAddressGraphQlResponse
- a common suffix applied to all classes used as GraphQl types.This issue is about documenting how to configure a custom
ClassNameTypeResolver
on theGraphQlSource
so that it's achieving that naming strategy with a name extractor.The text was updated successfully, but these errors were encountered: