<?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: lambnoah99</title>
    <description>The latest articles on DEV Community by lambnoah99 (@lambnoah99).</description>
    <link>https://dev.to/lambnoah99</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F255782%2Fcb76ecbf-5084-4188-a7a1-ef1b3871eded.png</url>
      <title>DEV Community: lambnoah99</title>
      <link>https://dev.to/lambnoah99</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lambnoah99"/>
    <language>en</language>
    <item>
      <title>Need Help with Data Modelling in Firebase</title>
      <dc:creator>lambnoah99</dc:creator>
      <pubDate>Sat, 04 Jan 2020 22:25:43 +0000</pubDate>
      <link>https://dev.to/lambnoah99/need-help-with-data-modelling-in-firebase-o24</link>
      <guid>https://dev.to/lambnoah99/need-help-with-data-modelling-in-firebase-o24</guid>
      <description>&lt;p&gt;I'm trying to create a Data Structure in Firebase for a group todo app like this:&lt;/p&gt;

&lt;p&gt;Users-Collection: Every user is a document with some attributes, a user can be part of many groups (1 -&amp;gt; n).&lt;/p&gt;

&lt;p&gt;Groups-Collection: Every group is a document with attributes, a group has many users (1 -&amp;gt; n), a group has many items (1 -&amp;gt; n).&lt;/p&gt;

&lt;p&gt;Todos-Collection: Every todo is a document with a ID and some attributes.&lt;/p&gt;

&lt;p&gt;My Question is what the best way would be to model this? While developing I discovered, that if i want to display all of a groups users, i had to make a request for every user, or i had to store every attribute of a user inside the group's document. And the same would apply to the Todos.&lt;/p&gt;

&lt;p&gt;Here are some screenshots how the Data Structure is looking right now:&lt;br&gt;
Users-Collection:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--P7rcxe3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/kt41bgfhgzdii3iabnb9.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--P7rcxe3x--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/kt41bgfhgzdii3iabnb9.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Groups-Collection:&lt;br&gt;
&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--smkrkL27--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/3yppnk86q4gnyv6wn5cw.PNG" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--smkrkL27--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://thepracticaldev.s3.amazonaws.com/i/3yppnk86q4gnyv6wn5cw.PNG" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Btw for Frontend I'm using Ionic 4 with Angular and for firebase interactions I use AngularFire.&lt;/p&gt;

</description>
      <category>help</category>
      <category>angular</category>
      <category>firebase</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
