UNPKG

@neo4j/graphql

Version:

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

27 lines 1.06 kB
import Cypher from "@neo4j/cypher-builder"; import type { AttributeAdapter } from "../../../../schema-model/attribute/model-adapters/AttributeAdapter"; import type { QueryASTContext } from "../QueryASTContext"; import { InputField } from "./InputField"; /** Input field from a parameter * it will generate a set operation from param, if a Cypher.Variable or Param is passed, it will be used * otherwise, the value will be wrapped in a param * * ```cypher * CREATE (var0:Movie) * SET * this.id = $param0 * ``` */ export declare class ParamInputField extends InputField { protected attribute: AttributeAdapter; protected inputValue: unknown; constructor({ attribute, attachedTo, inputValue, }: { attribute: AttributeAdapter; attachedTo: "node" | "relationship"; inputValue: unknown; }); getChildren(): never[]; getSetParams(queryASTContext: QueryASTContext<Cypher.Node>, _inputVariable?: Cypher.Variable): Cypher.SetParam[]; private coerceReference; } //# sourceMappingURL=ParamInputField.d.ts.map