<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adrian</title>
    <description>The latest articles on DEV Community by Adrian (@adrian110288).</description>
    <link>https://dev.to/adrian110288</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F36308%2F5cc128e7-a8ca-49bf-bebd-4fb149e36dbf.jpeg</url>
      <title>DEV Community: Adrian</title>
      <link>https://dev.to/adrian110288</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adrian110288"/>
    <language>en</language>
    <item>
      <title>Sequalize model validation or express-validator?</title>
      <dc:creator>Adrian</dc:creator>
      <pubDate>Tue, 08 Oct 2019 11:38:50 +0000</pubDate>
      <link>https://dev.to/adrian110288/sequalize-model-validation-or-express-validator-3j3f</link>
      <guid>https://dev.to/adrian110288/sequalize-model-validation-or-express-validator-3j3f</guid>
      <description>&lt;p&gt;Hey,&lt;/p&gt;

&lt;p&gt;I am writing an api with Sequelize for the first time. I am stuck on thinking what the best way is to validate body parameters. On one hand, Sequelize provides pretty extensive model validation but I need to attempt to save the model in order to get validation error, which seems slower and less performant than if I validated the body as the first thing in my route handler with package such as express-validator e.g. Have anyone got any opinions of that?&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>node</category>
      <category>orm</category>
    </item>
  </channel>
</rss>
