我可以在分组搜索查询中使用关联吗

问题描述 投票:0回答:0

根据 Shopware 6 搜索查询文档,您可以通过使用“分组”参数在查询中使用分组依据语句。

https://shopware.stoplight.io/docs/store-api/cf710bf73d0cd-search-queries#grouping

文本建议您可以,例如,获取按客户分组的订单。但我一直无法让它工作:

{
  "grouping": ["orderCustomer"]
}


{
  "grouping": ["orderCustomer.id"]
}

我试过包括 orderCustomer 和客户协会(以及各种可能和不太可能的东西),但这没有任何区别。

也许这是不可能的,我只是解释错了。

有人有想法吗?如果你能做到这一点,那将非常有用。

shopware6 shopware6-api
© www.soinside.com 2019 - 2024. All rights reserved.