Thelabels()function in KQL graph semantics is now generally available. This function enables you to retrieve, filter, and project label information for nodes and edges in your graph queries, making it easier to work with categorized graph data.
Filter graph elements by their labels to focus on specific node or edge types
Project label information in query results for better data understanding
Use labels with collection functions likeany(),all(), andmap()for advanced pattern matching
Access labels of intermediate nodes in variable-length paths usinginner_nodes()
Labels can be either static (fixed labels assigned to node or edge types) or dynamic (labels derived from data properties during graph construction), giving you flexibility in how you organize and query your graph data.