Skip to content

Change the label of a type using TypeQL #131

Open
@alexjpwalker

Description

@alexjpwalker

Problem to Solve

Changing the label of a type using Graql used to be possible using the following confusing syntax:

EntityType type = tx.getEntityType("a-new-type");
Label newLabel = Label.of("a-new-new-type");
tx.execute(Graql.define(type(newLabel.getValue()).id(type.id().getValue())));

Current Workaround

Delete the type and recreate it with all of the same properties, changing the label.

Proposed Solution

We need to think about how this could be implemented in a more intuitive way.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions