Bake the sweet potatoes. Preheat the oven to 400°F. Scrub and dry the sweet potatoes, then pierce each one several times with a fork. Place them on a parchment-lined baking sheet and bake for 45–60 minutes, until a knife slides easily through the thickest part.
Cook the onion and mushrooms. While the potatoes bake, heat the olive oil in a large skillet over medium-high heat. Add the onion and cook for 3–4 minutes, until softened. Add the mushrooms and cook for 6–8 minutes, stirring occasionally, until their moisture has evaporated and the edges are golden.
Add the garlic and spinach. Stir in the garlic and cook for about 30 seconds. Add the spinach and cook for 1–2 minutes, stirring, until wilted.
Finish the filling. Reduce the heat to low. Stir in the heavy cream, Parmesan, salt, black pepper, and nutmeg. Simmer gently for 2–3 minutes, until the mixture is creamy and thick enough to coat the vegetables. Taste and adjust the seasoning as needed.
Prepare the potatoes. Let the baked sweet potatoes cool for a few minutes. Slice each one lengthwise without cutting completely through the bottom. Open gently and fluff the flesh with a fork.
Fill and serve. Divide the mushroom and spinach mixture between the potatoes. Sprinkle with parsley and additional Parmesan, if desired. For a brighter finish, add a small squeeze of fresh lemon juice. Serve warm.