UNPKG

@neo4j/graphql

Version:

A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations

20 lines 801 B
import type Cypher from "@neo4j/cypher-builder"; import type { AttributeType } from "../../../schema-model/attribute/AttributeType"; import type { Neo4jGraphQLTranslationContext } from "../../../types/neo4j-graphql-translation-context"; interface Callback { functionName: string; param: Cypher.Param; parent?: Record<string, unknown>; type: AttributeType; } export declare class CallbackBucket { callbacks: Callback[]; private context; constructor(context: Neo4jGraphQLTranslationContext); addCallback(callback: Callback): void; /** Executes the callbacks and updates the values of the Cypher parameters attached to these callbacks */ resolveCallbacks(): Promise<void>; private parseCallbackResult; } export {}; //# sourceMappingURL=callback-bucket.d.ts.map