title: mongodb typescript type checking
body: <p>In node I am using mongodb client and the findMany query returns an Array of Documents.</p>
  <p>What I actually need is that I should be able to make sure if the returned Array contains all the fields which a return type expecting.</p>
  <p>I have defined a type e.g Game like</p>
  <pre><code>export type Game {
   name: string;
   description: string;
   ...
  } 
  </code></pre>
  <p>and my query looks like</p>
  <pre><code>const  games = (await this.games.find({}).toArray()) as Game[];
  </code></pre>
  <p>But I did not find any mechanism to be sure if the response contains all the fields which <code>Game</code> type requires.</p>