title: How to use connectOrCreate with many to many in prisma
body: <p>I want to use Prisma to associate articles with tags, that is: A post has multiple tags and a tag belongs to multiple posts<br />
  But the example in Prisma will result in the creation of duplicate tags</p>
  <p>Here is my Prisma model</p>
  <pre><code>model Article {
    id        Int      @id @default(autoincrement())
    createdAt DateTime @default(now())
    title     String
    summary   String
    link      String   @unique
    archive   String
    content   String
    image     String
    tags      Tag[]
  }
  
  model Tag {
    id       Int       @id @default(autoincrement())
    name     String
    articles Article[]
  }
  </code></pre>
  <p>This is my code according to the documentation, it causes duplicate tags to appear</p>
  <pre class="lang-js prettyprint-override"><code>await prisma.article.create({
    data: {
      title,
      summary,
      link,
      archive,
      content,
      image,
      tags: {
        create: tags.map((tag) =&gt; ({ name: tag })),
      },
    },
  });
  
  </code></pre>
  <p>When I use connectOrCreate, it reports an error in many-to-many mode</p>
  <pre class="lang-js prettyprint-override"><code>await prisma.article.create({
    data: {
      title,
      summary,
      link,
      archive,
      content,
      image,
      tags: {
        connectOrCreate: {
          where: tags.map((tag) =&gt; ({ name: tag })),
          create: tags.map((tag) =&gt; ({ name: tag })), 
        },
      },
    },
  });
  </code></pre>