traverse_customer_orders
Retrieve orders for a customer or the customer for an order by traversing the customer-orders link, using forward direction with a customer ID or reverse with an order ID.
Instructions
Traverse the Customer → Order link "customerOrders" (one-to-many). direction=forward: pass a Customer pk, get linked Order objects. direction=reverse: pass a Order pk, get linked Customer objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pk | Yes | ||
| direction | No | forward |