MariaDB Connector/Node.js is used to connect applications developed on Node.js to MariaDB and MySQL databases. MariaDB Connector/Node.js is LGPL licensed.
I was trying to cast any BIGINT numbers to strings so that I can serialize my results to JSON, But it seems like BIGINT was missing as a enum in the Types enum, this commit fixes the issue
typeCast: (field, next): => {
// Property 'BIGINT' does not exist on type 'typeof Types'.ts(2339)
if (field.type === Types.BIGINT) {
return field.string()
}
return next()
}
I was trying to cast any BIGINT numbers to strings so that I can serialize my results to JSON, But it seems like BIGINT was missing as a enum in the Types enum, this commit fixes the issue