in src/connectors/gremlinCmd-output-connector.ts [13:27]
public saveOutput(data: GraphInfo, callback: any): void {
if (!this.config || !this.config.fileName) {
callback(new Error('fileName not specified in output config'));
}
const fileName = this.config.fileName;
const vertices = data.vertices.map(c => GraphHelper.getAddVertexQuery(c));
const edges = data.edges.map(c => GraphHelper.getAddEdgeQuery(c));
const commands = vertices.concat(edges);
fs.writeFile(
fileName,
commands.join('\n'),
{ encoding: 'utf-8' },
callback
);
}