Skip to content

Feature: multiple-labels per node #181

@adsharma

Description

@adsharma

API

Other

Description

Other property graphs support this:

CREATE (p:Person:Employee:Manager {name: "Alice", id: 123})

// Matches all nodes with Person label
MATCH (p:Person) RETURN p

// Matches only nodes with both Person AND Employee labels
MATCH (p:Person:Employee) RETURN p

// Matches nodes with at least one of the labels
MATCH (n) WHERE n:Person OR n:Employee RETURN n

Common Patterns

  • Type hierarchies: :Animal:Mammal:Dog
  • Role combinations: :User:Premium:Admin
  • State + type: :Order:Active:Wholesale

Previous discussion:

kuzudb/kuzu#3117
kuzudb/kuzu#3114

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions