title: Prisma : how can I find all elements that match an id list?
body: <p>I am using Prisma with NextJs.</p>
  <p>In my API, I send to the back end a list of numbers that correspond to id's of objects in my database.</p>
  <p>As an example, if I receive the list <code>[1, 2, 12]</code>, I would like to return the objects where the id is either 1, 2 or 12</p>
  <p>This is part of a query that is more complex ( sorting / counting / ... ) but I am blocking at the first step with is to get the list of elements</p>
  <p>So far I have this :</p>
  <pre><code>import { PrismaClient, Prisma } from '@prisma/client'
  
  const prisma = new PrismaClient()
  
  
  export default async function handler(req, res) {
      if (req.method !== 'POST') {
          res.status(400).send({ message: 'Only POST requests allowed for this route' })
      } else {
          const { signes_id } = req.query
          const signes_array = signes_id.split(&quot;,&quot;).map(function(item) {
              return parseInt(item)
          })
          console.log(signes_array)
          const ret = await prisma.signe.findMany({
              where: {
                  id: Number(signes_array),
              }
          })
          res.status(200).send(ret)
      }
  }
  </code></pre>
  <p>This does not work as <code>Number</code> expects an int, not an array of int</p>
  <p>How can I write the query such as it returns the needed array of objects ?<br/>
  And how can I deal with id's that do not match ?</p>