• Get a node by its numeric node ID

    Looks up a node across function_node and module_node tables using the numeric portion of the record ID.

    Parameters

    • db: Surreal

      SurrealDB instance

    • nodeId: number

      Numeric node ID (e.g., 4495)

    Returns Promise<NodeResult | null>

    Node data or null if not found

    const node = await getNodeFromId(db, 4495);
    if (node) console.log(node.name);