addCustomScalarAdapter
fun <T> addCustomScalarAdapter(customScalarType: CustomScalarType, customScalarAdapter: Adapter<T>): ApolloClient.Builder
Content copied to clipboard
Registers the given customScalarAdapter
Parameters
customScalarType
a generated CustomScalarType. Every GraphQL custom scalar has a generated class with a static type property. For an example, for a Date custom scalar, you can use com.example.Date.type
customScalarAdapter
the Adapter to use for this custom scalar