Skip to content

Commit

Permalink
Changed to fetch neptune graph summary via http instead of sdk as the…
Browse files Browse the repository at this point in the history
… sdk might have some issues.
  • Loading branch information
andreachild committed Nov 7, 2024
1 parent 592ab86 commit 95907f9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/NeptuneSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit 95907f9

Please sign in to comment.