I have a graphQL datasource and I am interested in counting the number of items

I’d like to count the number of items in a graphQL array using a retool Transformer:
var Count = {{getAllTips.data.listTips.items}}
Count returns the below array. Any ideas on what JS I can use to count and return the total # of Items? I’ve tried a bunch of JS but no luck. :frowning:

Every array has a .length property, so this should work just fine:

const count = {{ getAllTips.data.listTips.items.length }}

Worked amazing. Thank you! :clap::clap:

Thank you @pmetzdorf!