diff --git a/src/js/utils.js b/src/js/utils.js index 3702ad39f..b3f431fb1 100644 --- a/src/js/utils.js +++ b/src/js/utils.js @@ -190,11 +190,11 @@ async function dropIndexes() { let session = driver.session(); let indexes = []; - let result = await session.run('CALL db.constraints') + let result = await session.run('CALL db.indexes') for (let record of result.records){ - let constraint = record.get(0) - let query = 'DROP INDEX ' + constraint; + let index = record.get(1) + let query = 'DROP INDEX ' + index; indexes.push(query) }