It is not recommended to use “dgraph.type”. The type system is designed to use with Type() Func.
dgraph.type
Type() Func