dqlx
dqlx copied to clipboard
Expand(_all_) DQL feature
@fenos Is there a way to .Select() all of the fields instead? Also, is there a way to inject expand(_all_) in the selection?
Trying something like:
Select(`
uid
expand(_all_)\{
expand(_all_)
\}
`)
Also, this can be consider as bug, right?
"message": "rpc error: code = Unknown desc = : while converting to subgraph: expand(_all_) not allowed multiple times in same sub-query.",
@fenos Is there any workaround?
Hi @droslean you can try using the Edge function something along this line:
Select(`uid`).Edge("expand(_all_)", dqlx.Select(`
expand(_all_)
`)).
@fenos I tried what you suggested, but the response still doesn't include any predicates.
It seems that the query is constructed with <expand(_all_)> instead of expand(_all_). For some reason, dgraph is ignoring the expand if it is surrounded with <>.