title: Model.create is not a function - strapi
body: <p>I have a few unique fields when creating model in strapi's admin ui.</p>
  
  <p>I realized that when field is not provided during the api call, it'll give an error message of <code>500</code> instead of the proper error message.</p>
  
  <p>I do understand why there's an error since I can see the log in backend console and I have scanned through posts such as <a href="https://github.com/strapi/strapi/issues/1189" rel="nofollow noreferrer">https://github.com/strapi/strapi/issues/1189</a> and <a href="https://github.com/strapi/strapi/issues/1175" rel="nofollow noreferrer">https://github.com/strapi/strapi/issues/1175</a></p>
  
  <p>After reading those issues, I believe the best way is to go <code>/api/controllers</code> and create a function such as <code>create</code> to override the one provided but I get an error of <code>Model.create is not a function</code></p>
  
  <p>I have not do much in the controller yet so code is slim.</p>
  
  <pre><code>module.exports = {
      /* Strapi has default create function
       * But because of the error message it provide is vague, will have to customize the controller */
      create: async (ctx) =&gt; {
          try {
              console.log(ctx.request.body, 'ctx');
              const article = await Article.create(ctx.request.body);
              console.log(article, 'article');
          } catch (e) {
              console.log(e, 'error');
          }
      }
  };
  </code></pre>
  
  <p>I have read the issue ticket <code>https://github.com/strapi/strapi/issues/1505</code>
  But I am using 
  strapi: 3.0.0-beta.17.5
  node: v10.17.0
  npm: 6.11.3
  db: sqlite3 (local) postgresql (staging)</p>
  
  <p>Anyone know what I might have done wrong?</p>
  
  <p>Thanks in advance for any help and advise.</p>