@neo4j/graphql
Version:
A GraphQL to Cypher query execution layer for Neo4j and JavaScript GraphQL implementations
25 lines • 931 B
TypeScript
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 property,
* given an inputVariable it will generate a set operation from a property of that variable
*
* ```cypher
* CREATE (var0:Movie)
* SET
* this.id = var0.id
* ```
*/
export declare class PropertyInputField extends InputField {
private attribute;
constructor({ attribute, attachedTo }: {
attribute: AttributeAdapter;
attachedTo: "node" | "relationship";
});
getChildren(): never[];
getSetParams(queryASTContext: QueryASTContext<Cypher.Node>, inputVariable?: Cypher.Variable): Cypher.SetParam[];
private getVariablePath;
private coerceReference;
}
//# sourceMappingURL=PropertyInputField.d.ts.map