In Commerce we are moving away from hardcoded nested field retrieval. One of our use cases is to retrieve the shipping address of a specific order item starting from the parent order entity
Steps to reproduce:
- Have an entity with deep nested fields: ie Order -> OrderItems -> shippingAddress
- Invoke a rest call with nestedField parameter set to retrieve all nested fields: nestedFields=orderItems,orderItems.shippingAddress
All deep nested fields are retrieved.
Request fails complaining that can't find an orderItem for a given id. The id is actually the parent order id.