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
import { SubscriptionCache } from "https://dotland.deno.dev/x/pothos@release-1689883337/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)
import SubscriptionCache
import { SubscriptionCache } from "https://dotland.deno.dev/x/pothos@release-1689883337/packages/plugin-smart-subscriptions/mod.ts";