Grate pecorino cheese, using a food processor with a grater attachment or a cheese grater.
Bring a large pot of salted water to a boil. Cook gnocchi according to package instructions, stirring gently. They should rise to the surface.
Meanwhile, heat oil in a large skillet, add green beans and peas and cook until tender, about 2 minutes.
Add the garlic and cook until fragrant, about 40 seconds.
Remove the gnocchi from the water with a slotted spoon and put into the skillet with veggies. Season with ground black pepper generously. Mix and cook further for another minute over low heat.
In a large bowl mix together the grated pecorino cheese and 2-3 ladles of hot gnocchi water.
Pour the sauce into the skillet and add another ladle of hot gnocchi water if necessary. Stir until the sauce gets through the gnocchi. If the sauce is too thick for your taste, add more water.
Adjust the seasoning to your liking.
Serve immediately and enjoy!