Can dgraph query all predicates of a node based on uid without knowing the predicate of the node?

Can dgraph query all predicates of a node based on uid without knowing the predictor of the node?
For example, * in SQL

For the star notation, you can use dgraph.io/docs/query-language/expand-predicates/

The main question I’m not sure what you mean. It is a bit ambiguous. Please clarify. Do you wanna query incoming edges? you said “predictor”.

I suspect @tss means “Predicate”

Sorry, I misspelled.It’s Predicate. But I can’t get the correct answer using expand(_all_) in the version number 20.07.1

return uid:

return expand(_all_):

Thank you for your reply! That is predicate indeed. But I can’t get the correct answer using expand( _all_ ) in the version number 20.07.1

Does your dataset contains the “dgraph.type”? see https://dgraph.io/docs/query-language/type-system/#type-definition

e.g

_:a <dgraph.type> "Pet" .

Thank you for your reply, I need to read the document again.

1 Like