In a bowl, mix eggs, water, and flour until smooth. Add parsley, garlic, basil, pepper, salt, mix and leave to sit for 10 minutes.
In a frying pan, cook the onions in oil until golden brown. Remove from heat.
Boil water in a large saucepan, add salt. Reduce heat to medium and leave on stove to simmer. Using a spätzli press, squeeze the batter into a saucepan. When the spätzli float on top, they are cooked. Strain the spätzli, transfer to a bowl and season with butter.
Heat the oven to 200°C. Mix the ham with onions, wine, and cream. Season with pepper. Spread spätzli into a deep baking dish, top with ham, onions, and cream, and sprinkle over the cheese. Bake for 20-25 minutes.
My tips and tricks
If you don't have a spätzli press, put the dough into a colander or potato masher and, using any handy scraper or silicone spatula, squeeze the dough into boiling water.
Maria Kalenska Gastronomy Blog | http://www.myodessacuisine.com/recipes/spatzli-and-bacon-gratin/