Chop the bacon, sauté with the onion and garlic. Meanwhile, grate the zucchini and mushrooms. Add both and cook with them. Possibly pour on the cream, but it can also be left out. Season the sauce.
Boil the gnocchi in salted water and drain, then serve with the sauce. Chop the basil leaves and sprinkle over them. Spread the chopped feta on top.