List values

You can either directly query them from the list, or take the more verbose route through the items:

document.list('shopping_list').requiredStringValues(); // Note the plural here
document.list('shopping_list').items().map(item => item.requiredStringValue());

An important gotcha here is that in the shortcut version required string values does not mean there have to be items in the list, but only that items need to have a value. If you look at the non-shortcut version this is obvious, but for the shortcut version it's important to keep in mind.

The optional* variant of this accessor produces the less commonly needed array that might contain null values:

document.list('list_with_empty_spacer_items').optionalStringValues();

Next page: Keys and Comments