You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When querying the activeOrder with custom relation fields on the OrderLine entity, the shop-api throws an error: Cannot read properties of undefined (reading 'filter'.
This issue occure only when eager: true.
This issue does not occur with the admin-api order(id: $id) query.
No stack trace in the server logs.
To Reproduce
Define custom ProductVariant fields for `OrderLine.
While debugging the core package, I discovered that the method this.orderService.findOne(ctx, sessionOrder.id), invoked by activeOrder, successfully retrieves the custom field value. This same method is also called within the context of order(id: xxx) in the admin API. However, when the shop API makes a request, it results in an error, but the admin does not. Additionally, none of the middleware reported any errors. I’m uncertain about the next steps to take in troubleshooting this issue.
Describe the bug
When querying the
activeOrder
with custom relation fields on theOrderLine
entity, the shop-api throws an error:Cannot read properties of undefined (reading 'filter'
.This issue occure only when
eager: true
.This issue does not occur with the admin-api order(id: $id) query.
No stack trace in the server logs.
To Reproduce
ProductVariant
fields for `OrderLine.activeOrder
using the shop-api with the custom fields.Expected behavior
The shop-api should load the relation type custom fields without any errors, similar to the admin-api.
Environment (please complete the following information):
Additional context
Repository https://github.com/ban-am/order-line-custom-relation-field-error
The text was updated successfully, but these errors were encountered: