What other fields are in the collection.tags array?

i am added the following code to my theme

{% if collection.all_tags.size > 0 %}
  
    {% for tag in collection.all_tags %}
      {% if current_tags contains tag %}
        - {{ tag | link_to_remove_tag: tag }}

      {% else %}
        - {{ tag | link_to_add_tag: tag }}
      {% endif %}
    {% endfor %}
  

{% endif %}

I found it here Filter collections by tag

i also added

({{ tag.size }})

tag is an array HERE

I am wonderign if there is a list somehwere that shows the avaoble fields in the array. Like tag.size, what are the other field sin the ar

Hello @IP1999 ,

Greetings from the Store Watchers Support Team! Happy to help you today.

There are no fields or properties in an array. If you are looking for array filters like the size you can use {{ tags | size }}

Here you can find the list of all the array filters : https://shopify.dev/api/liquid/filters/array-filters

Regards,
Store Watchers Support Team