[英]Sequalize Conversion
[{"id":1},{"id":2}]
{ id: [1,2,3,4] }
I'm getting an incentive in the first arrangement yet I need the second configuration of significant worth. 在第一种安排中我得到了激励,但在第二种配置中我需要大量的价值。 How do I change this in a single sequalize inquiry?
如何在一次均等查询中更改此设置?
Thank you for helping me to illuminate this. 感谢您帮助我阐明这一点。
Mapping can be done in following way. 映射可以通过以下方式完成。
const result = [{"id":1},{"id":2}]
{
id: result.map((o)=>{ o.id })
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.