Senzing Node.js SDK
    Preparing search index...
    • Adds a data source to the Senzing configuration. Returns the updated configuration JSON string with the new data source included.

      Parameters

      • configJson: string

        The current configuration as a JSON string.

      • options: AddDataSourceOptions

        Data source options including the required code identifier.

      Returns string

      The updated configuration JSON string.

      import { addDataSource } from "@senzing/configtool";

      let config = addDataSource(configJson, { code: "CUSTOMERS" });
      config = addDataSource(config, { code: "WATCHLIST", retentionLevel: "Remember" });