Boil the water in a pot with salt and cook the pasta in it. Drain and wash the pasta with cold water. Then, drain again. Put mayonnaise, grated onion, pickle juice in a deep bowl and mix. Add beans, carrots, chopped cornichons (very small cubes), salt and pepper. Add the pasta into bowl and mix.
Bon Appetite!