Hi @wwwjljj,
To get all predicates, you could use expand(_all_) . Note that to use expand, type system will have to be used. Also, to get the node using <类型> , the predicate <类型> will have to be indexed.
The query will then look something like this:
{
get_all_predicates(func: eq(<类型>, "动作")) {
expand(_all_)
}
}
Related Documentation:
Type System: https://dgraph.io/docs/query-language/type-system/
Expand Predicate: https://dgraph.io/docs/master/query-language/expand-predicates/
Indexing: https://dgraph.io/docs/master/query-language/schema/#indexing
To get started, you may also see how these things could be used using the interactive Dgraph tour, A Tour of Dgraph