Type mismatch on variable $boardId

I am using Monday.Client.v2 in .Net, just trying to fetch board data by calling the following

 _client = new MondayClient("API_KEY");
 long boardId = 1514653242;
 var result = await _client.GetBoard(boardId);

but i got an error
“Message”: “Type mismatch on variable $boardId and argument board_id (Int! / ID!)”

I have checked the implementation for GetBoard(), and here it’s

public async Task<Board> GetBoard(long boardId)
{
    GraphQLRequest request = new GraphQLRequest
    {
        Query = "query request($id:Int) { boards(ids:[$id]) { id name description board_kind state board_folder_id permissions owner { id name email url photo_original title birthday country_code location time_zone_identifier phone mobile_phone is_guest is_pending enabled created_at } columns { id, title, type, archived settings_str } } }",
        Variables = new
        {
            id = boardId
        }
    };
    GraphQLResponse<GetBoardsResponse> graphQLResponse = await _graphQlHttpClient.SendQueryAsync<GetBoardsResponse>(request);
    ThrowResponseErrors(graphQLResponse.Errors);
    return graphQLResponse.Data.Boards.FirstOrDefault();
}

i think the error at that type request($id:Int) should be request($id[ID])
but since it’s library code and i can’t modify it, how can i fix this ?

Check you’re using the latest version of the library, if so, open an issue with the library developer.

Alternatively, fork the library from its source repository, and make necessary changes yourself to update it. Then ideally create a pull request for the library developer to incorporate your changes in the library.

Lastly of course, you can abandon the library and implement the queries yourself.