```const prisma = new PrismaClient({ log: ["query"...
# orm-help
p
Copy code
const prisma = new PrismaClient({ log: ["query"] })
  const {
    method,
    query: { id },
    body
  } = req

  const userId = id as unknown
  const userIdString = userId as string
  const userIdInt = parseInt(userIdString)
r
@Perry Raskin 👋 Why not directly do this?
Copy code
const userId = parseInt(id)
p
it gives me a type error (or warning?) saying that i need to cast is as
unknown
first for some reason
maybe i should just ignore it?
r
I think if you type the
request
object then you should be fine.