Hi, the code below illustrates my problem. I’m not able to create a collection of the 'Orders'
that have this 'Product'
as a reference. I only seem to find reference-sets used for sums and counts, but not for anything else. Is a collection of referenced items possible?
'Products': collection ['Name'] {
'Name': text
'Orders Reference': reference-set -> downstream ^ .'Orders'* = inverse >'Product'
'Orders': collection ['Order'] = <'Orders Reference'* { // <- Collection of referenced orders
'Order': text -> ^ 'Orders'[]
}
}
'Orders': collection ['Order'] {
'Order': text
'Product': text -> ^ .'Products'[] -<'Orders Reference'
}