Retrieve schema predicates or types only

Moved from GitHub dgraph/5811

Posted by EnricoMi:

Experience Report

What you wanted to do

I retrieve the schema via schema { }. I may be interested in the predicates given in "schema" or the "types" only.

Why that wasn’t great, with examples

The response to that query always contains "schema" and "types", one of them is irrelevant and pollutes the response. Would be great if I could select which of them I am interested in. Could be combined with pagination (see #5810).

Any external references to support your case

Discussed in the forum.