diff --git a/src/NeptuneSchema.js b/src/NeptuneSchema.js index 1baccf9..4c118e5 100644 --- a/src/NeptuneSchema.js +++ b/src/NeptuneSchema.js @@ -368,14 +368,13 @@ function getNeptuneGraphClient() { */ async function getNeptuneGraphSummary() { loggerInfo('Retrieving ' + NEPTUNE_GRAPH + ' summary') - const client = getNeptuneGraphClient(); - const command = new GetGraphSummaryCommand({ - graphIdentifier: NAME, - mode: 'detailed' + let response = await axios.get(`https://${HOST}:${PORT}/summary`, { + params: { + mode: 'detailed' + } }); - const response = await client.send(command); loggerInfo('Retrieved ' + NEPTUNE_GRAPH + ' summary') - return response.graphSummary; + return response.data.graphSummary; } /**