get_option_item_by_id

@mount("proposals.external.get_option_item_by_id") query get_option_item_by_id(    opt_id: rowid): (option_id: rowid, proposal_id: rowid, option: text, total_vote: big_integer, (command_id: rowid, name: text, description: text, is_executed: boolean)?)?

Retrieves an option item by its ID.

Return

option_item - The mapped option item data if found, or null if the option item does not exist.

Parameters

opt_id
  • The unique ID (rowid) of the option item to retrieve.