Return all the nodes a graph as a list using the golang client

If all nodes are of same type, then you should use type query instead of recursing through the nodes.

{
  q(func: type(IdNode)) {
    uid
    name
  }
}