
commonMain.com.apollographql.apollo.AutoPersistedQueryInfo.kt Maven / Gradle / Ivy
package com.apollographql.apollo
import com.apollographql.apollo.api.ApolloResponse
import com.apollographql.apollo.api.ExecutionContext
import com.apollographql.apollo.api.Operation
/**
* Information about auto persisted queries
*
* @param hit: whether the query was hit or required another round trip to send the document
*/
class AutoPersistedQueryInfo(
val hit: Boolean,
) : ExecutionContext.Element {
override val key: ExecutionContext.Key<*>
get() = Key
companion object Key : ExecutionContext.Key
}
val ApolloResponse.autoPersistedQueryInfo
get() = executionContext[AutoPersistedQueryInfo]
© 2015 - 2025 Weber Informatics LLC | Privacy Policy