How to understand UNWIND?

@okaytouch

MATCH (m:Movie)
UNWIND m.languages as language
RETURN m

effectively says..

   find me a node with label :Movie
   extract property m.languages and unwind this property, i.e. iterate thru the list
   for each element in the list 
   return/print the node

As such if a :Movie node has a property languages and it has a value of 6 items in a list, then we iterate 1 by 1 through the 6 items in the list and then reurn/print the :Movie node for each language in the list