Preheat oven to 425ºF.
Spread ricotta or goats cheese over flatbread or pitas. Set aside.
To a large skillet over medium-high add butter, onion and mushrooms. Cook, stirring for 5-8 minutes until softened. Add garlic and continue to cook, stirring, for 1 minute.
Spread mushroom mixture on prepared bread. Sprinkle with cheese and pepper.
Bake 4-6 minutes until cheese is melted and bread is warmed through and brown.