Skip to content

Commit

Permalink
Add documentation on type queries. (#3720)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinmr authored Jul 24, 2019
1 parent b0b676d commit cf7c1e6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions wiki/content/query-language/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -2490,6 +2490,16 @@ schema(pred: [name, friend]) {
}
```

Types can also be queried. Below are some example queries.

```
schema(type: Movie) {}
schema(type: [Person, Animal]) {}
```

Note that type queries do not contain anything between the curly braces. The
output will be the entire definition of the requested types.

## Facets : Edge attributes

Dgraph supports facets --- **key value pairs on edges** --- as an extension to RDF triples. That is, facets add properties to edges, rather than to nodes.
Expand Down

0 comments on commit cf7c1e6

Please sign in to comment.