title: How do I change the read model in cqrs?
body: <p>I'm new in cqrs user.</p>
  <p>I have event in</p>
  <pre><code>id agg      event         payload                            time 
  1  member   MemberCreated  {id:1,user:yumi,age:21 ...}       2021-06-10
  2  member   MemberUpdated  {id:1,user:yumi,age:25 ...}       2021-06-10
  3  member   MemberDeleted  {}                                2021-06-11
  </code></pre>
  <p>and, my ask is</p>
  <p>How does the read model change based on events 1-3 above?</p>
  <p>first scenario :</p>
  <p>1 event in readmodel :</p>
  <pre><code>{id:1,user:yumi,age:21 ...}
  </code></pre>
  <p>1 row in readmodel</p>
  <p>2 event in readmodel :</p>
  <pre><code>{id:1,user:yumi,age:21 ...}
  {id:1,user:yumi,age:25 ...}
  </code></pre>
  <p>2 row in readmodel</p>
  <p>3 event in readmodel :</p>
  <pre><code>{id:1,user:yumi,age:21 ...}
  {id:1,user:yumi,age:25 ...}
  </code></pre>
  <p>{}
  3 row in readmodel</p>
  <p>or update only read model ??</p>
  <p>second scenario :</p>
  <pre><code>{id:1,user:yumi,age:21 ...}
  -&gt; 
  {id:1,user:yumi,age:25 ...}
  -&gt;
  {}
  </code></pre>
  <p>I am very confused about this issue. Any help would be appreciated.</p>