This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
g.withSack(120).V( DEPARTURE_PORT ). | |
repeat( | |
(outE().hasLabel('VOYAGES_TO'). | |
sack(sum).by('duration')). | |
sack(sum).by(constant(45) | |
). | |
inV().simplePath() | |
). | |
until( | |
has('code', CANDIDATE_PORT ). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<graphml xmlns='http://graphml.graphdrawing.org/xmlns'> | |
<key id='type' for='node' attr.name='type' attr.type='string'></key> | |
<key id='code' for='node' attr.name='code' attr.type='string'></key> | |
<key id='desc' for='node' attr.name='desc' attr.type='string'></key> | |
<key id='author' for='node' attr.name='author' attr.type='string'></key> | |
<key id='date' for='node' attr.name='date' attr.type='string'></key> | |
<key id='labelV' for='node' attr.name='labelV' attr.type='string'></key> | |
<key id='labelE' for='edge' attr.name='labelE' attr.type='string'></key> | |
<key id='mode' for='edge' attr.name='mode' attr.type='string'></key> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
******************************************************* | |
Neptune Gremlin Profile | |
******************************************************* | |
Query String | |
================== | |
g.withSack(120).V('BOS'). | |
repeat( | |
outE().hasLabel('VOYAGES_TO').sack(sum).by('duration'). | |
sack(sum).by(constant(45)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { driver, structure, process as gremlinProcess } from 'gremlin'; | |
import { fromNodeProviderChain } from '@aws-sdk/credential-providers'; | |
import { getUrlAndHeaders } from 'gremlin-aws-sigv4/lib/utils'; | |
async function getCredentials() { | |
try { | |
const provider = fromNodeProviderChain({ | |
clientConfig: { region: process.env.REGION }, | |
}); | |
const credentials = await provider(); |
OlderNewer