Entries field in categories URI Is there a way to pass value of an entries field into category URI format?

{% if object.level == 1 %}

{slug}-{entries.one().slug}

{% else %}

{slug}-{parent.uri}

{% endif %}


Thanks.
If your entries field is in the layout of your category

{% if object.level == 1 %}
    {% set entry = object.entriesFieldHandle.one() %}
    {slug}-{{ entry? entry.slug : '' }}
{% else %}
    {slug}-{parent.uri}
{% endif %}