While you can cook it whole I highly recommend slicing before air frying. Each piece gets nicely browned and lightly caramelized in the air fryer. If you do want to cook it whole simply air fryer for the same amount of time, flipping half way through.