Query on internal shipment

Hello everyone,
how do I filter internal shipments with the to_location = children of a view_location?

Thank you

I think you can do:

[('to_location', 'parent_of', <location id>, 'parent')]