Switch on the Instant Pot in saute mode. Wait for a min and add 1 tbsp of Olive oil. Once it's hot add 8 oz sliced button mushrooms and then add ½ cup of fresh peas.
Saute them for 5 mins or till the mushroom shrinks and gets cooked. Remove them from the Instant Pot and set them aside.
Cook the Pasta
In the Instant Pot another 1 tbsp of oil. Add 1 finely chopped onion and chopped garlic. Saute till the onions are cooked soft.
Now add the salt and black pepper powder. Combine everything togther.
Next, add 1.5 cups of water. Deglaze the pot once. Next, add in 8 oz spaghetti. I am using whole wheat spaghetti. You may break them into half and arrange them in a crisis cross fashion.
Press the spaghetti gently so that it touches the water and is slightly wet. Close the Instant Pot and set 5 mins in high pressure. Make sure you move the pressure knob to the sealing position.
After 5 mins do a quick release and open the Instant Pot. Use a tong and gently fluff the cooked spaghetti. You might still see a little water in the Instant Pot at this stage. But don't worry it will eventually go away. Press saute mode and start cooking.
Mushroom Peas Pasta
Add the cooked mushrooms and peas. If using frozen peas. Use can add them directly now. Combine everything together.
Now add ½ cup of fresh cream. Mix once and cook for 3 mins and then switch off the Instant Pot. Tear and add some fresh basil leaves.
Keep the Instant Pot closed for 15 mins. After 15 mins open and fluff the spaghetti. The water is now completely evaporated and then spaghetti looks fluffy. Mushroom Peas pasta is now ready.