new OGMNeoIndex()
- Source:
Methods
(static) create(label, properties) → {Promise.<(object|Error)>}
Creates properties index on neo4j.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | Label where the index will be create. |
properties |
array | string | The array fields where to create the index or in case of only a string name of the property. Must be a string array. OBS: More than one parameter you be accepted only on neo4j 3.2.0. |
- Source:
Returns:
Neo4j result object if fulfilled, or some neo4j error if rejected.
- Type
- Promise.<(object|Error)>
(static) drop(label, properties) → {Promise.<(object|Error)>}
Drops properties index on neo4j.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | Label where the index will be dropped. |
properties |
array | string | The array fields where to drop the index or in case of only a string name of the property. Must be a string array. OBS: More than one parameter you be accepted only on neo4j 3.2.0 |
- Source:
Returns:
Neo4j result object if fulfilled, or some neo4j error if rejected.
- Type
- Promise.<(object|Error)>