@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
22 lines • 909 B
TypeScript
import Cypher from "@neo4j/cypher-builder";
import type { ConcreteEntityAdapter } from "../../../../schema-model/entity/model-adapters/ConcreteEntityAdapter";
import type { QueryASTContext } from "../QueryASTContext";
import type { QueryASTNode } from "../QueryASTNode";
import { EntitySelection, type SelectionClause } from "./EntitySelection";
/** Selects a node using Match */
export declare class NodeSelection extends EntitySelection {
private optional;
private selectionPattern;
constructor({ target, alias, optional, useContextTarget, }: {
target: ConcreteEntityAdapter;
alias?: string;
optional?: boolean;
useContextTarget?: boolean;
});
getChildren(): QueryASTNode[];
apply(context: QueryASTContext): {
nestedContext: QueryASTContext<Cypher.Node>;
selection: SelectionClause;
};
}
//# sourceMappingURL=NodeSelection.d.ts.map