@neo4j/cypher-builder
Version:
A programmatic API for building Cypher queries for Neo4j
13 lines (12 loc) • 593 B
TypeScript
/** Escapes a Node label string */
export declare function escapeLabel(label: string): string;
/** Escapes a Relationship type string */
export declare function escapeType(type: string): string;
/** Escapes a property name string */
export declare function escapeProperty(propName: string): string;
/** Escapes a variable name if needed */
export declare function escapeVariable(varName: string): string;
/** Escapes a literal string
* Given a string, it adds the single quotes (') and escapes ('), (\) and the unicode versions
*/
export declare function escapeLiteral(str: string): string;