Fix IN keyword.
AQL edge function direction argument needs to be in single quotes.
Refactor creation of generic list into single method.