<?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: Luciano Barreto</title>
    <description>The latest articles on DEV Community by Luciano Barreto (@luchobarreto).</description>
    <link>https://dev.to/luchobarreto</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%2F446803%2F221fff90-19e3-432a-96db-35747fb280eb.png</url>
      <title>DEV Community: Luciano Barreto</title>
      <link>https://dev.to/luchobarreto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/luchobarreto"/>
    <language>en</language>
    <item>
      <title>MongoDB Database Design</title>
      <dc:creator>Luciano Barreto</dc:creator>
      <pubDate>Wed, 19 Aug 2020 13:43:35 +0000</pubDate>
      <link>https://dev.to/luchobarreto/mongodb-database-design-4ojh</link>
      <guid>https://dev.to/luchobarreto/mongodb-database-design-4ojh</guid>
      <description>&lt;p&gt;Hi! I'm trying to make an app with the MERN Stack, just for practice. What I want to do is an "eCommerce Maker", where the user can create his eCommerce only saving his products and categories. Some time ago I did the same thing in firebase, there i had a collection with an id per eCommerce, this collection had subcollections for categories with products inside. I want to do the same with MongoDB, I don't know a lot of MongoDB, but I came with two "solutions".&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;Store all the business information (products, categories, etc) in a single document.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Store businesses in a collection, create a "global" collection for categories, and reference the categories in the business collection.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;What solution do you recommend me to use? I'm new at this. Thanks!&lt;/p&gt;

&lt;p&gt;PD: Sorry for my English, I'm from Argentina xd&lt;/p&gt;

</description>
      <category>mongodb</category>
      <category>node</category>
      <category>database</category>
      <category>help</category>
    </item>
  </channel>
</rss>
