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 20, 2024
1 parent 2d6c08c commit e3eb1bd
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 @@ -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;
}

/**
Expand Down

0 comments on commit e3eb1bd

Please sign in to comment.