Package-level declarations

Types

Link copied to clipboard

Based on the GsonFactory in the AmplifyFramework. Includes all builder adjustments from that factory plus one of our own.

Link copied to clipboard
class JsonOptionalSerializer<V> : JsonSerializer<Optional<V>>

Functions

Link copied to clipboard
suspend fun <T : Mutation<D>, D : Mutation.Data> SimpleGraphQLRequest<D>.mutate(apiCategory: ApiCategory, parserBuilder: () -> T, variablesSerializer: GraphQLRequest.VariablesSerializer? = null): GraphQLResponse<D>

Manage callback for mutate given an apiCategory.

Link copied to clipboard
suspend fun <T : Query<D>, D : Query.Data> SimpleGraphQLRequest<D>.query(apiCategory: ApiCategory, parserBuilder: () -> T, variablesSerializer: GraphQLRequest.VariablesSerializer? = null): GraphQLResponse<D>

Manage callback for query given an apiCategory.

Link copied to clipboard
fun <T : Subscription<D>, D : Subscription.Data> SimpleGraphQLRequest<D>.subscribe(apiCategory: ApiCategory, parserBuilder: () -> T, onSubscriptionEstablished: Consumer<GraphQLResponse<D>>, onSubscription: Consumer<GraphQLResponse<D>>, onSubscriptionCompleted: Action, onFailure: Consumer<ApiException>, variablesSerializer: GraphQLRequest.VariablesSerializer? = null): GraphQLOperation<D>?