Some gnocchi recipes skip the egg when baking instead of boiling it, making the recipe adaptable for those following a vegan or plant-based diet. The egg acts like a binder to hold the dough together. That’s why it’s important when it comes to boiling gnocchi, but not necessarily when baking it.