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

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

Pothos GraphQL is library for creating GraphQL schemas in typescript using a strongly typed code first approach
Go to Latest
class CacheNode
Re-export
import { CacheNode } from "https://deno.land/x/pothos@release-1695766300/packages/plugin-smart-subscriptions/cache.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)