DECIMAL
From MySQL2 Documentation
DECIMALandNEWDECIMALtypes always returned asstringunless you pass this config option:
import { MySQL } from 'mysql2-orm';
const pool = new MySQL({
// ...
decimalNumbers: true,
});
From MySQL2 Documentation
DECIMAL and NEWDECIMAL types always returned as string unless you pass this config option:import { MySQL } from 'mysql2-orm';
const pool = new MySQL({
// ...
decimalNumbers: true,
});