How can I return all nodes of a certain type?

Try

{
  q(func: type(DummyType)) {
    expand(_all_)
  }
}

Don’t miss the underscores at the beginning and the end of _all_.