Hello all :raised_hands: Any idea, how we can log ...
# prisma-client
i
Hello all 🙌 Any idea, how we can log a failed query in Prisma Client? We have working Prisma Client event logging on GCP via Winston Stackdriver transport, but when we get a
Query interpretation error [2016]
, there's no event emitted for logging, the error is just thrown and logged later by Apollo Client, but without any important details like the failing query.
Copy code
clientVersion: "2.21.2"
code: "P2016"
meta: {
details: "Error for binding '1': AssertionError("Expected a valid parent ID to be present for nested update to-one case.")"
}
stack: "Error: Query interpretation error. Error for binding '1': AssertionError("Expected a valid parent ID to be present for nested update to-one case.")
    at cb (/usr/src/api2/node_modules/@prisma/client/runtime/index.js:34780:17)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:97:5)"
prisma rainbow 2