UNPKG

579 BTypeScriptView Raw
1import { Driver } from 'neo4j-driver';
2import { YamlConfig, MeshHandler, GetMeshSourceOptions } from '@graphql-mesh/types';
3export default class Neo4JHandler implements MeshHandler {
4 private name;
5 private cache;
6 private config;
7 private pubsub;
8 constructor({ name, cache, config, pubsub }: GetMeshSourceOptions<YamlConfig.Neo4JHandler>);
9 private driver;
10 getDriver(): Driver;
11 getMeshSource(): Promise<{
12 schema: any;
13 contextBuilder: () => Promise<{
14 driver: Driver;
15 neo4jDatabase: string;
16 }>;
17 }>;
18}