<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="308867" data-post-id="308867">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="sbuttgereit" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/sbuttgereit/120/30162_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  sbuttgereit
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="artem" data-post="10" data-topic="59898">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/artem/48/27625_2.png" class="avatar"> artem:</div>
<blockquote>
<p>What about the relationship between schemas?</p>
</blockquote>
</aside>
<p>I’m probably not the best person to comment on this aspect.</p>
<p>While I will have to decide exactly how to represent these kinds of more complex relationships, I haven’t gotten there yet.  I look at it this way: if trying to build a highly structured model around a fully representative embedded schemas model is complex, doesn’t feel sufficiently natural, and doesn’t come with sufficient benefits to merit the trouble… I’ll likely not try to create a single embedded schema which faithfully models the entire form and be content with managing simpler collections of embedded schema structs which, on their own, represent discrete, independent form elements.</p>
<p>My goal with embedded schemas is simply validating input by “users” (meaning any external input), coming through a web interface or via an external API, so any answer that accomplishes that will be sufficient with the only question being which approach is optimal.  Ecto facilitates a number of approaches in this regard.  Again, figuring out the optimal approach, including how embedded schema associations work and their pros/cons, is a “future me” problem.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="308867" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/are-ecto-embedded-schemas-useful-without-a-database/59898/12">Post #11</a>
	                </div>
	            </div>
              <div id="likers-container-308867" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="308867"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-last-post cat-last-post" title="Last post!"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <span class="all-loaded">— All posts loaded —</span>
</div></template></turbo-stream>