Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

sequelize查询问题

$
0
0

现在查询的格式是 { id: 1, emp_id: ‘1’, created_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), updated_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), account: { id: 2, email: ‘b’, created_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), updated_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), user_id: 1 } } 我想要这种格式的 { id: 1, emp_id: ‘1’, created_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), updated_at: Tue Nov 03 2015 15:25:27 GMT+0800 (CST), email: ‘b’, } 把email拿出来不知道能否实现


Viewing all articles
Browse latest Browse all 14821

Trending Articles