Skip to content

Repeated Subgraph Error #1652

@BlakeMScurr

Description

@BlakeMScurr

Any query query with expand(_all_) and another predicate at the same level fails with "Repeated subgraph: [<pred>] while using expand()". Just as this unit test fails.

This prevents us from writing queries like:

{
	me(func:anyofterms(name, "Alice")) {
		expand(_all_)
		friend {
                     name
                }
	}
}

From my point of view, it would be nice to implicitly exclude the friend predicate from expand(_all_), so that you can get all values of a node and particular values of its children.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions