简体   繁体   中英

How to make nested RQL request

I have a Dyn Admin repository with 2 descriptors: sku and product .

Could you please give an advice how to make nested RQL request, where I search for ids that returns from other RQL?

Something like this:

<query-items item-descriptor="sku" id-only="false">
id IN {
  <query-items item-descriptor="product" id-only="false">
    parentCategories CONTAINS "cat"
  </query-items>
  }
</query-items> 

Nesting is not supported but if skus that you are querying in an outer query, are child skus of the products of the inner query, then probably you can use the following:

<query-items item-descriptor="sku" id-only="true">parentProducts includes item (parentCategories CONTAINS "cat")</query-items>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM