constructor()

in src/connectors/gremlin-connector.ts [18:36]


  constructor(config: any) {
    const authenticator = new Gremlin.driver.auth.PlainTextSaslAuthenticator(
      config.user,
      config.password
    );
    const endpoint = `wss://${config.host}:${config.port}/gremlin`;
    this.client = new Gremlin.driver.Client(endpoint, {
      authenticator,
      mimeType: 'application/vnd.gremlin-v2.0+json',
      rejectUnauthorized: true,
      traversalsource: 'g',
    });

    this.batchSize = config.batchSize
      ? config.batchSize
      : this.defaultBatchSize;
    this.upsert = config.upsert;
    this.retry = config.retry ? config.retry : this.defaultRetry;
  }