Package com. apollographql. apollo3. api
Types
AnyAdapter
Link copied to clipboard
ApolloRequest
Link copied to clipboard
class ApolloRequest<D : Operation.Data> constructor(operation: Operation<D>, requestUuid: Uuid, executionContext: ExecutionContext) : HasExecutionContext
Content copied to clipboard
ApolloResponse
Link copied to clipboard
class ApolloResponse<out D : Operation.Data>(requestUuid: Uuid, operation: Operation<*>, data: D?, errors: List<Error>?, extensions: Map<String, Any?>, executionContext: ExecutionContext)
Content copied to clipboard
BooleanAdapter
Link copied to clipboard
BooleanExpression
Link copied to clipboard
BPossibleTypes
Link copied to clipboard
BTerm
Link copied to clipboard
CompiledArgument
Link copied to clipboard
CompiledCondition
Link copied to clipboard
CompiledField
Link copied to clipboard
CompiledFragment
Link copied to clipboard
CompiledListType
Link copied to clipboard
CompiledNamedType
Link copied to clipboard
CompiledNotNullType
Link copied to clipboard
CompiledSelection
Link copied to clipboard
sealed class CompiledSelection
Content copied to clipboard
CompiledType
Link copied to clipboard
sealed class CompiledType
Content copied to clipboard
CompiledVariable
Link copied to clipboard
CustomScalarAdapters
Link copied to clipboard
class CustomScalarAdapters constructor(customScalarAdapters: Map<String, Adapter<*>>) : ExecutionContext.Element
Content copied to clipboard
A wrapper around a Map<String, Adapter> used to retrieve custom scalar adapters at runtime
CustomScalarType
Link copied to clipboard
class CustomScalarType(name: String, className: String) : CompiledNamedType
Content copied to clipboard
CustomTypeAdapter
Link copied to clipboard
CustomTypeValue
Link copied to clipboard
DoubleAdapter
Link copied to clipboard
EnumType
Link copied to clipboard
Error
Link copied to clipboard
Executable
Link copied to clipboard
ExecutionContext
Link copied to clipboard
interface ExecutionContext
Content copied to clipboard
FloatAdapter
Link copied to clipboard
Fragment
Link copied to clipboard
HasExecutionContext
Link copied to clipboard
interface HasExecutionContext
Content copied to clipboard
HasMutableExecutionContext
Link copied to clipboard
interface HasMutableExecutionContext<T : HasMutableExecutionContext<T>> : HasExecutionContext
Content copied to clipboard
Implemented by classes whose ExecutionContext can be mutated: ApolloClient.
ImmutableMapBuilder
Link copied to clipboard
InputObjectType
Link copied to clipboard
IntAdapter
Link copied to clipboard
InterfaceType
Link copied to clipboard
class InterfaceType(name: String, keyFields: List<String>, implements: List<InterfaceType>) : CompiledNamedType
Content copied to clipboard
ListAdapter
Link copied to clipboard
class ListAdapter<T>(wrappedAdapter: Adapter<T>) : Adapter<List<@JvmSuppressWildcards() T>>
Content copied to clipboard
This file contains a list of Adapter for standard typesThey are mostly used from the generated code but could be useful in any other situations that requires adapting from GraphQL to Kotlin.
LongAdapter
Link copied to clipboard
NullableAdapter
Link copied to clipboard
class NullableAdapter<T : Any>(wrappedAdapter: Adapter<T>) : Adapter<@JvmSuppressWildcards() T?>
Content copied to clipboard
ObjectAdapter
Link copied to clipboard
class ObjectAdapter<T>(wrappedAdapter: Adapter<T>, buffered: Boolean) : Adapter<@JvmSuppressWildcards() T>
Content copied to clipboard
ObjectType
Link copied to clipboard
class ObjectType(name: String, keyFields: List<String>, implements: List<InterfaceType>) : CompiledNamedType
Content copied to clipboard
Operation
Link copied to clipboard
Optional
Link copied to clipboard
OptionalAdapter
Link copied to clipboard
class OptionalAdapter<T>(wrappedAdapter: Adapter<T>) : Adapter<Optional.Present<@JvmSuppressWildcards() T>>
Content copied to clipboard
QueryDocumentMinifier
Link copied to clipboard
object QueryDocumentMinifier
Content copied to clipboard
ScalarType
Link copied to clipboard
StringAdapter
Link copied to clipboard
Subscription
Link copied to clipboard
UnionType
Link copied to clipboard
UploadAdapter
Link copied to clipboard
Functions
and
Link copied to clipboard
fun <T : Any> and(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard
fun <T : Any> BooleanExpression<T>.and(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard
checkFieldNotMissing
Link copied to clipboard
composeJsonData
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonData(sink: BufferedSink, data: D)
Content copied to clipboard
See composeJsonData
fun <D : Operation.Data> Operation<D>.composeJsonData(data: D, customScalarAdapters: CustomScalarAdapters, indent: String): String
Content copied to clipboard
See composeJsonData
fun <D : Operation.Data> Operation<D>.composeJsonData(sink: BufferedSink, data: D, customScalarAdapters: CustomScalarAdapters, indent: String)
Content copied to clipboard
composeJsonRequest
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonRequest(customScalarAdapters: CustomScalarAdapters): String
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonRequest(sink: BufferedSink)
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonRequest(sink: BufferedSink, customScalarAdapters: CustomScalarAdapters)
Content copied to clipboard
composeJsonResponse
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse(data: D): String
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse(sink: BufferedSink, data: D)
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse(data: D, customScalarAdapters: CustomScalarAdapters, indent: String): String
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.composeJsonResponse(sink: BufferedSink, data: D, customScalarAdapters: CustomScalarAdapters, indent: String)
Content copied to clipboard
isComposite
Link copied to clipboard
keyFields
Link copied to clipboard
list
Link copied to clipboard
not
Link copied to clipboard
notNull
Link copied to clipboard
or
Link copied to clipboard
fun <T : Any> or(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard
fun <T : Any> BooleanExpression<T>.or(vararg other: BooleanExpression<T>): BooleanExpression<T>
Content copied to clipboard
parseJsonData
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonData(source: BufferedSource): D
Content copied to clipboard
See parseJsonData
fun <D : Operation.Data> Operation<D>.parseJsonData(byteString: ByteString): D
Content copied to clipboard
see parseJsonData
fun <D : Operation.Data> Operation<D>.parseJsonData(string: String, customScalarAdapters: CustomScalarAdapters): D
Content copied to clipboard
see parseJsonData
fun <D : Operation.Data> Operation<D>.parseJsonData(source: BufferedSource, customScalarAdapters: CustomScalarAdapters): D
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonData(byteString: ByteString, customScalarAdapters: CustomScalarAdapters): D
Content copied to clipboard
see parseJsonData
parseJsonResponse
Link copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(string: String): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(map: Map<String, Any?>): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(source: BufferedSource): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(byteString: ByteString): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(string: String, customScalarAdapters: CustomScalarAdapters): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(map: Map<String, Any?>, customScalarAdapters: CustomScalarAdapters): ApolloResponse<D>
Content copied to clipboard
fun <D : Operation.Data> Operation<D>.parseJsonResponse(source: BufferedSource, customScalarAdapters: CustomScalarAdapters): ApolloResponse<D>
Content copied to clipboard
Reads a GraphQL Json response like below to a ApolloResponse
{
"data": ...
"errors": ...
"extensions": ...
}
fun <D : Operation.Data> Operation<D>.parseJsonResponse(byteString: ByteString, customScalarAdapters: CustomScalarAdapters): ApolloResponse<D>
Content copied to clipboard
possibleTypes
Link copied to clipboard
fun possibleTypes(vararg typenames: String): BooleanExpression<BPossibleTypes>
Content copied to clipboard
fun possibleTypes(allTypes: List<CompiledType>, type: CompiledNamedType): List<ObjectType>
Content copied to clipboard
toJson
Link copied to clipboard
variable
Link copied to clipboard
variables
Link copied to clipboard
fun <D : Executable.Data> Executable<D>.variables(customScalarAdapters: CustomScalarAdapters): Executable.Variables
Content copied to clipboard
variablesJson
Link copied to clipboard
fun <D : Executable.Data> Executable<D>.variablesJson(customScalarAdapters: CustomScalarAdapters): String
Content copied to clipboard
withHttpHeader
Link copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withHttpHeader(httpHeader: HttpHeader): ApolloRequest<D>
Content copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withHttpHeader(name: String, value: String): ApolloRequest<D>
Content copied to clipboard
withHttpHeaders
Link copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withHttpHeaders(httpHeaders: List<HttpHeader>): ApolloRequest<D>
Content copied to clipboard
withHttpMethod
Link copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withHttpMethod(httpMethod: HttpMethod): ApolloRequest<D>
Content copied to clipboard
withSendApqExtensions
Link copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withSendApqExtensions(sendApqExtensions: Boolean): ApolloRequest<D>
Content copied to clipboard
withSendDocument
Link copied to clipboard
fun <D : Operation.Data> ApolloRequest<D>.withSendDocument(sendDocument: Boolean): ApolloRequest<D>
Content copied to clipboard
Properties
CompiledBooleanType
Link copied to clipboard
CompiledDirectiveType
Link copied to clipboard
CompiledEnumValueType
Link copied to clipboard
CompiledFieldType
Link copied to clipboard
CompiledFloatType
Link copied to clipboard
CompiledIDType
Link copied to clipboard
CompiledInputValueType
Link copied to clipboard
CompiledIntType
Link copied to clipboard
CompiledSchemaType
Link copied to clipboard
CompiledStringType
Link copied to clipboard
CompiledTypeType
Link copied to clipboard
NullableAnyAdapter
Link copied to clipboard
NullableBooleanAdapter
Link copied to clipboard
NullableDoubleAdapter
Link copied to clipboard
NullableIntAdapter
Link copied to clipboard
NullableStringAdapter
Link copied to clipboard