Ratel does not display manually set Type in the schema tab at Types or Predicates

Moved from GitHub ratel/190

Posted by martinthenth:

What version of Dgraph are you using?

20.03

Have you tried reproducing the issue with the latest release?

Issue is with latest release.

What is the hardware spec (RAM, OS)?

macOS 8GB

Steps to reproduce the issue (command/config used to run Dgraph).

  1. Create node with “dgraph.type” in JSON:
    { "dgraph.type": "Post", "title": "string", ... }

  2. See Ratel schema on localhost:8000. Type Post is not visible, nor predicate dgraph.type.

  3. Query the node with func: type(Post) or as filter @filter (type(Post)). The query happens correctly with Type set.

Expected behaviour and actual result.

Types set via “dgraph.type”, as per the documentation https://dgraph.io/docs/query-language/#setting-the-type-of-a-node, should appear in Ratel dashboard as either Type or Predicate.

Types set via JSON do not, however, show up in the Ratel dashboard. Functionally they work as expected and I have not found a problem apart form the dashboard.

paulftw commented :

Closing this issue as not specific to Ratel.
See discussion in Ratel does not display manually set Type in the schema tab at Types or Predicates. · Issue #5254 · dgraph-io/dgraph · GitHub