findUnique()
batching exceeding parameter binding limits
#23957
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: batching
topic: findUnique()
topic: postgresql
Bug description
While querying large datasets leveraging
findUnique
to prevent GraphQL N+1s, we're experiencing parameter binding errors due to the amount of bound parameters created in the batched query.This causes the graphql query hitting these resolvers to fail.
Error:
How to reproduce
Promise.all
, simulating a large GQL N+1Expected behavior
Potentially split queries that would exceed the bound param limit into multiple batches.
Prisma information
Schema: Unrelated
Code:
Environment & setup
v20.11.1
Prisma Version
The text was updated successfully, but these errors were encountered: