EDGE_ID_FROM_PARTS
graph id composition or decomposition
What changes
- Input
- object id and graph id parts, or a node/edge id
- Output or change
- node or edge id component
- Return type
- Returns an nvarchar(1000) character representation (JSON) of the edge ID. The return value can be NULL if any of the supplied arguments are invalid.
Syntax at a glance
EDGE_ID_FROM_PARTS ( object_id, graph_id )
Work example
Build a graph edge identifier from its documented object and graph id parts.
Use graph identifiers with the matching node or edge table and retain an ordinary business key.
Check your work Check the source edge table and ensure invalid parts do not pass unnoticed as null.
Open Microsoft Learn for full syntax, permissions, and details for your version.