fix edges query

Signed-off-by: Ken Barber <ken@bob.sh>