当我在sequelize中使用findAll()而不使用raw:true时我想获取数据值
Activities.findAll({
include: [
{
all: true
}
],
})
.then(activities => {
});
Run Code Online (Sandbox Code Playgroud) 我怎样才能获得数组的所有索引,
[
{
"name":"aloha",
"age":"18"
},
{
"name":"hello word"
},
{
"name":"John Doe",
"age":"28"
}
]
Run Code Online (Sandbox Code Playgroud)
输出应该像[0,1,2]