See `[:extensions, output_relationships_in_statuses_by_default]` setting and `with_relationships` param.
And introduce safe_jsonb_set