Skip to content

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

@martinthenth

Description

@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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/questionSomething requiring a response.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions