How to Make It
Preheat the oven to 475°. Prick the eggplants all over with a fork and set them on a large baking sheet. Roast for 30 minutes, or until the eggplants are charred and very soft. Let cool slightly, then peel. Coarsely chop the eggplant pulp, transfer it to a strainer set over a bowl and let drain for 30 minutes; press to release any remaining liquid.
Finely chop the eggplant and transfer it to a bowl. Add the onion and garlic, then gradually stir in the oil and lemon juice until incorporated. Stir in the mayonnaise and season with salt and pepper. Serve with pita.