Companion

Properties

Link copied to clipboard
const val MIME_TYPE: String

Functions

Link copied to clipboard
fun create(context: Context, level: ILogger.Level = ILogger.Level.INFO): GraphConverter

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 the default GraphQLJson and a build-time generated GraphQLDocumentRegistry.

fun create(context: Context, gson: Gson, level: ILogger.Level = ILogger.Level.INFO): GraphConverter

Allows you to provide your own Gson configuration which will be used when serialize or deserialize response and request bodies.

fun create(json: GraphQLJson, registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter

Creates a registry-first GraphConverter with a custom GraphQLJson instance and without requiring an Android Context.

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, json: GraphQLJson, registry: GraphQLDocumentRegistry, level: ILogger.Level = ILogger.Level.INFO): GraphConverter

Creates a GraphConverter with a custom GraphQLJson instance and a build-time generated GraphQLDocumentRegistry.

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.