Skip to content

Commit

Permalink
Adding docs about filtering on list (#5306)
Browse files Browse the repository at this point in the history
* Adding docs about filtering on list

Signed-off-by: Prashant Shahi <prashant@dgraph.io>
  • Loading branch information
prashant-shahi authored Apr 29, 2020
1 parent 23140a9 commit 9d10c9e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions wiki/content/query-language/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2501,6 +2501,15 @@ score: [int] .
"#functions">}}) on them.
* Sorting is not allowed using these predicates.

### Filtering on list

Dgraph supports filtering based on the list.
Filtering works similarly to how it works on edges and has the same available functions.

For example, `@filter(eq(occupations, "Teacher"))` at the root of the query or the
parent edge will display all the occupations from a list of each node in an array but
will only include nodes which have `Teacher` as one of the occupations. However, filtering
on value edge is not supported.

### Reverse Edges

Expand Down

0 comments on commit 9d10c9e

Please sign in to comment.