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.
Every array has a .length property, so this should work just fine:
const count = {{ getAllTips.data.listTips.items.length }}
Worked amazing. Thank you!