Functions
Link copied to clipboard
Default creator that uses a predefined gson configuration
fun create(registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter
Creates a GraphConverter that resolves operation documents from a build-time generated GraphQLDocumentRegistry without requiring an Android Context.
fun create(context: Context, registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter
Creates a GraphConverter with a build-time generated GraphQLDocumentRegistry.
Allows you to provide your own Gson configuration which will be used when serialize or deserialize response and request bodies.
fun create(gson: Gson, registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter
Creates a registry-first GraphConverter with a custom Gson instance and without requiring an Android Context.
fun create(context: Context, gson: Gson, registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter
Creates a GraphConverter with a custom Gson configuration and a build-time generated GraphQLDocumentRegistry.