From e3eb1bda2fdae547bae3dcd4060909d556ed3d54 Mon Sep 17 00:00:00 2001 From: Andrea Child Date: Thu, 7 Nov 2024 15:29:10 -0800 Subject: [PATCH] Changed to fetch neptune graph summary via http instead of sdk as the sdk might have some issues. --- src/NeptuneSchema.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/NeptuneSchema.js b/src/NeptuneSchema.js index 1e79dbd..fc13e04 100644 --- a/src/NeptuneSchema.js +++ b/src/NeptuneSchema.js @@ -366,14 +366,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; } /**