In a small bowl beat the egg and add the flour, mixing until well combined. In a large bowl combine cooked spaghetti squash, grated potato, parmesan cheese, parsley, yellow onion, and chopped bacon. Pour the egg mixture over the spaghetti squash and mix well until batter is uniform.