Has anyone been successfully with SQL Server 2019 using Column Encryption and Node.js? If so, what packages are you using? The closest I've gotten is a connection with ODBC Driver 17, with ColumnEncryption=Enabled. I can query tables with this connection, but when I try to query an EncryptedColumn all I get is [nodemon] app crashed... no errors no exceptions or anything.
I've also tried several different versions of the ODBC Driver without success.
import { SqlClient } from "msnodesqlv8";
const sql: SqlClient = require("msnodesqlv8");
const connectionString = `server=SERVER\\DEV;Trusted_Connection=Yes;Driver={ODBC Driver 17 for SQL Server};encrypt=yes;trustServerCertificate=yes;ColumnEncryption=Enabled;`;
// queryA results in [nodemon] app crashed - ...
const queryA = `select *  from [database].[dbo].[table]; `;
// queryB results in returning the id of the record in the table
const queryB = `select id from [database].[dbo].[table]; `; 
export default () => {
  try {
    sql.query(connectionString, queryA, (err, rows) => {
        console.log({ err });
        console.log(rows);
      }
    );
  } catch (error) {
    console.log({ error });
  }
};
Dependencies
msnodesqlv8@2.6.0
mssql@9.0.1