title: Error Assertion `args[3]->IsInt32()' failed
body: <ul>
  <li><strong>Version</strong>: v12.19.0</li>
  <li><strong>Platform</strong>: Linux ayungavis 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux</li>
  <li><strong>Subsystem</strong>:</li>
  </ul>
  <h3>What steps will reproduce the bug?</h3>
  
  <p>I tried to follow the tutorial from <a href="https://www.howtographql.com/graphql-js/4-adding-a-database/" rel="nofollow noreferrer">Adding a Database to GraphQL</a>, this is the code of my <code>script.ts</code>:</p>
  <pre><code>const { PrismaClient } = require(&quot;@prisma/client&quot;)
  
  const prisma = new PrismaClient()
  
  async function main() {
    const allLinks = await prisma.link.findMany()
    console.log(allLinks)
  }
  
  main()
    .catch(e =&gt; {
      throw e
    })
    .finally(async () =&gt; {
      await prisma.disconnect()
    })
  </code></pre>
  <h3>How often does it reproduce? Is there a required condition?</h3>
  <p>Everytime when I run it using <code>node src/script.ts</code> or <code>ts-node src/script.ts</code>.</p>
  <p>The requirements:</p>
  <ul>
  <li>@prisma/cli</li>
  <li>@prisma/client</li>
  </ul>
  <h3>What is the expected behavior?</h3>
  
  <p>Show all links from the database using prisma client.</p>
  <h3>What do you see instead?</h3>
  
  <p>I tried to run the <code>script.ts</code> using <code>node src/script.ts</code> and <code>ts-node src/script.ts</code> but show the following error:</p>
  <pre><code>/usr/bin/node[20367]: ../src/node_http_parser_impl.h:529:static void node::{anonymous}::Parser::Initialize(const v8::FunctionCallbackInfo&lt;v8::Value&gt;&amp;): Assertion `args[3]-&gt;IsInt32()' failed.
   1: 0xa17c40 node::Abort() [/usr/bin/node]
   2: 0xa17cbe  [/usr/bin/node]
   3: 0xa3214a  [/usr/bin/node]
   4: 0xc019e9  [/usr/bin/node]
   5: 0xc037d7 v8::internal::Builtin_HandleApiCall(int, unsigned long*, v8::internal::Isolate*) [/usr/bin/node]
   6: 0x1409319  [/usr/bin/node]
  </code></pre>
  <h3>Additional information</h3>
  
  <p>This is my <code>package.json</code> file:</p>
  <pre><code>{
    &quot;name&quot;: &quot;learn&quot;,
    &quot;version&quot;: &quot;1.0.0&quot;,
    &quot;description&quot;: &quot;A GraphQL Server from scratch for learning purpose.&quot;,
    &quot;main&quot;: &quot;index.ts&quot;,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;dotenv -- nodemon -e ts,graphql -x ts-node src/index.ts&quot;,
      &quot;test&quot;: &quot;echo \&quot;Error: no test specified\&quot; &amp;&amp; exit 1&quot;
    },
    &quot;keywords&quot;: [],
    &quot;dependencies&quot;: {
      &quot;graphql-yoga&quot;: &quot;^1.18.3&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;@prisma/cli&quot;: &quot;^2.8.1&quot;,
      &quot;@prisma/client&quot;: &quot;^2.8.1&quot;,
      &quot;@types/node&quot;: &quot;^14.11.2&quot;,
      &quot;dotenv-cli&quot;: &quot;^4.0.0&quot;,
      &quot;nodemon&quot;: &quot;^2.0.4&quot;,
      &quot;ts-node&quot;: &quot;^9.0.0&quot;,
      &quot;typescript&quot;: &quot;^4.0.3&quot;
    }
  }
  </code></pre>