Paths
firstandlastcan sit in the middle of a path, for examplecollection.products.first.name.mapandsortread properties of objects, for exampleproduct.variants | map: 'price'.
Output
{% dump %}andjsonprint the fields of an object, such as metafields and related products, instead of{}.
Metafields
- A metafield namespace or key that does not exist is nil, so
{% if product.metafields.reviews.rating %}is false when the product has noreviews.ratingmetafield.