The description is not entirely accurate. It gives the impression that ToLookup picks up multiple values in the meta data, but after some testing I found it only picks up the first. To create a lookup when there may be multiple values in the metadata item ToLookupMany should be used.
I was looking at this section: https://statiq.dev/framework/documents/accessing-metadata#metadata-lookup
The description is not entirely accurate. It gives the impression that
ToLookup
picks up multiple values in the meta data, but after some testing I found it only picks up the first. To create a lookup when there may be multiple values in the metadata itemToLookupMany
should be used.