Skip to main content
Deno 2 is finally here 🎉️
Learn more
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-1690733553/packages/plugin-smart-subscriptions/mod.ts";

Constructors

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

Type Parameters

Types extends SchemaTypes

Properties

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

Methods

add(
info: GraphQLResolveInfo,
path: string,
canRefetch: boolean,
value: unknown,
)
cacheKey(path: Path)
get(path: string, reRegister: boolean)
getParent(info: GraphQLResolveInfo): CacheNode<Types> | null
getTypeSubscriber(type: string)
managerForParentType(info: GraphQLResolveInfo)