$arrayElemAt MongoDB 版本 3.2 中的新功能。
db.users.aggregate([
{
$project:
{
name: 1,
first: { $arrayElemAt: [ "$favorites", 0 ] },
last: { $arrayElemAt: [ "$favorites", -1 ] }
}
}
Run Code Online (Sandbox Code Playgroud)
])
在使用JHipster创建应用程序时,它没有显示问题的" React"选项"您想为客户端使用哪个框架?"