MockServer

Deprecated (with error)

MockServer has moved to new coordinates. See https://go.apollo.dev/ak-moved-artifacts/

Redirect placeholders. They are marked ApolloExperimental so that we don't track them in the public API

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun <D : Operation.Data> MockServer.enqueue(operation: Operation<D>, data: D, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, delayMs: Long = 0)
Link copied to clipboard
fun MockServer.enqueueData(data: Operation.Data, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, delayMillis: Long = 0, statusCode: Int = 200)
fun MockServer.enqueueData(data: Map<String, Any?>, customScalarAdapters: CustomScalarAdapters = CustomScalarAdapters.Empty, delayMillis: Long = 0, statusCode: Int = 200)