The answer is both! Boil the gnocchi to ensure it's cooked all the way through, then pan fry it in oil or butter for a delicious crispy outside.