我有一个这样的系列
{
category: "Groceries",
items: [...],
price: 30.0,
purchased: "04-10-2022 17:52:35"
},
{
category: "Groceries",
items: [...],
price: 11.0,
purchased: "04-10-2022 18:52:35"
},
{
category: "Cleaners",
items: [...],
price: 10.0,
purchased: "04-10-2022 17:52:35"
},
我想通过一个查询获取每个category
的最近购买情况。
结果应该是:
{
category: "Groceries",
items: [...],
price: 11.0,
purchased: "04-10-2022 18:52:35"
},
{
category: "Cleaners",
items: [...],
price: 10.0,
purchased: "04-10-2022 17:52:35"
},
1条答案
按热度按时间btxsgosb1#