New transformer which support either IDs or inlined resources for a related key.