How can I select all data from dgraph ?

Found an answer by @chengxuncc in this other thread:

{
  showallnodes(func: has(dgraph.type)){
    dgraph.type
    expand(_all_)
  }
}