UNPKG

neo4-js

Version:

Neo4j graphdb object graph mapper for javascript

10 lines (9 loc) 962 B
import { ModelInstance } from "./index"; import { RelationType } from "./Relation"; import { CharGenerator } from "./utils"; export declare function get(instance: ModelInstance<any>, label: string, relationType: RelationType, charGenerator?: CharGenerator, propertyName?: string): Promise<any> | any; export declare function create(instance: ModelInstance<any>, label: string, relationType: RelationType, props: any): Promise<any>; export declare function remove(instance: ModelInstance<any>, label: string, relationType: RelationType): Promise<any>; export declare function add(instance: ModelInstance<any>, label: string, relationType: RelationType, destInstance: ModelInstance<any>): Promise<boolean>; export declare function hasOne(instance: ModelInstance<any>, label: string, relationType: RelationType): Promise<boolean>; export declare function update(instance: ModelInstance<any>, label: string, relationType: RelationType, newProps: any): Promise<any>;