change api and add scaffolding for other edge queries