Skip to main content
Module

x/pothos/packages/plugin-smart-subscriptions/mod.ts>SubscriptionCache

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class SubscriptionCache
Re-export
import { SubscriptionCache } from "https://deno.land/x/pothos@release-1713397530/packages/plugin-smart-subscriptions/mod.ts";

Constructors

new
SubscriptionCache(manager: SubscriptionManager, buildCache: BuildCache<Types>)

Properties

buildCache: BuildCache<Types>
currentCache: Map<string, CacheNode<Types>>
invalidPaths: string[]
nextCache: Map<string, CacheNode<Types>>
prevInvalidPaths: string[]

Methods

add(
path: string,
canRefetch: boolean,
value: unknown,
)
cacheKey(path: Path)
get(path: string, reRegister: boolean)
getTypeSubscriber(type: string)