OBJECT_ID_FROM_EDGE_ID
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 the object_id for the graph table corresponding to the edge_id supplied. object_id is an int. If an invalid edge_id is supplied, NULL is returned.
Syntax at a glance
OBJECT_ID_FROM_EDGE_ID ( edge_id )
Work example
Resolve the graph edge table object id from an edge identifier.
Use graph identifiers with the matching node or edge table and retain an ordinary business key.
Check your work Check the object id in the current database and handle invalid edge ids.
Open Microsoft Learn for full syntax, permissions, and details for your version.