Findone based on component field

How can i find the data based on my component field with strapi db query

This topic has been created from a Discord post (1245809932205559859) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

where: { component: { attribute: … } } }

<@632956853122236457> can you please help me with example