Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pothos/packages/plugin-smart-subscriptions/index.ts>CacheNode

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

Constructors

new
CacheNode(
cache: SubscriptionCache<Types>,
path: string,
value: unknown,
refetch: () => MaybePromise<void>,
)

Type Parameters

Types extends SchemaTypes

Properties

cache: SubscriptionCache<Types>
fieldManager: FieldSubscriptionManager<Types> | null
path: string
refetch: () => MaybePromise<void>
typeManagers: Map<number | string, TypeSubscriptionManager>
value: unknown

Methods

managerForType(key: number | string)
replaceValue(value: unknown, key: number | string)