ApolloPersistedQueries

caliban.wrappers.ApolloPersistedQueries

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

Attributes

Companion
trait
Supertypes
class Object
trait Matchable
class Any
Self type

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Live

Value members

Concrete methods

def wrapper: Wrapper[Any]

Returns a wrapper that persists and retrieves queries based on a hash following Apollo Persisted Queries spec: https://github.com/apollographql/apollo-link-persisted-queries.

Returns a wrapper that persists and retrieves queries based on a hash following Apollo Persisted Queries spec: https://github.com/apollographql/apollo-link-persisted-queries.

This wrapper will initialize a non-expiring cache which will be used for all queries

Attributes

See also

Overloaded method for a variant that allows using a custom cache

def wrapper(cache: ApolloPersistence): Wrapper[Any]

Returns a wrapper that persists and retrieves queries based on a hash following Apollo Persisted Queries spec: https://github.com/apollographql/apollo-link-persisted-queries.

Returns a wrapper that persists and retrieves queries based on a hash following Apollo Persisted Queries spec: https://github.com/apollographql/apollo-link-persisted-queries.

Value parameters

cache

the query cache that will be used to store the parsed documents

Attributes

Concrete fields

val live: Layer[Nothing, ApolloPersistence]

Deprecated fields

Attributes

Deprecated
[Since version 2.9.0] Use `wrapper` instead and pass the cache explicitly