This code, using post as object, is working.
let post = {id: 1, name: 'Terminal 1'};
db.query('INSERT INTO terminal SET ?', post);
This code, using post as array, is not working.
let post = [
{id: 1, name: 'Terminal 1'},
{id: 2, name: 'Terminal 2'}
];
db.query('INSERT INTO terminal SET ?', post);
or
db.query('INSERT INTO terminal SET ?', [post]);