diff --git a/wiki/content/query-language/index.md b/wiki/content/query-language/index.md index 65b1f21694c..084731a6fb8 100644 --- a/wiki/content/query-language/index.md +++ b/wiki/content/query-language/index.md @@ -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.