OBJECT_ID_FROM_NODE_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 node_id supplied. object_id is an int. If an invalid node_id is supplied, NULL is returned.
Syntax at a glance
OBJECT_ID_FROM_NODE_ID ( node_id )
Work example
Resolve the graph node table object id from a node identifier.
Use graph identifiers with the matching node or edge table and retain an ordinary business key.
Check your work Check the object id and metadata visibility before naming the table.
Open Microsoft Learn for full syntax, permissions, and details for your version.