falkordb
Version:
A FalkorDB javascript library
12 lines (11 loc) • 499 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.transformArguments = transformArguments;
// GRAPH.CONSTRAINT DROP key constraintType {NODE label | RELATIONSHIP reltype} PROPERTIES propCount prop [prop...]
function transformArguments(key, constraintType, entityType, label, ...properties) {
return [
'GRAPH.CONSTRAINT', 'DROP',
key, constraintType, entityType, label,
'PROPERTIES', properties.length.toString(), ...properties
];
}