title: How to query custom collections from plugin in Strapi?
body: <p>I need to build my own plugin.
  I want to fetch data from my collection 'subscription' but I cannot find how to do it.</p>
  <p>I tried like</p>
  <pre><code>const subscriptions = strapi.query('subscription').find({});
  </code></pre>
  <p>but strapi.query is undefined.</p>
  <pre><code>import React, { memo } from 'react';
  import pluginId from '../../pluginId';
  
  const HomePage = () =&gt; {
    const renderEmails = () =&gt; {
        // Here I want to fetch emails from my collection and display it
        return null;
    }
  
    return (
      &lt;div&gt;
        &lt;h1&gt;{pluginId}&amp;apos;s HomePage&lt;/h1&gt;
        &lt;p&gt;Happy coding&lt;/p&gt;
        {renderEmails()}
      &lt;/div&gt;
    );
  };
  
  export default memo(HomePage);
  </code></pre>