Hey everyone! Quick question: is it possible to ca...
# orm-help
r
Hey everyone! Quick question: is it possible to cancel an in-flight query? Context: We’d like to cancel expensive queries if the HTTP request for the data is cancelled as well.
n
Hey Ryan 👋 I’m not sure if this will work but one thing you could try though is to call
$disconnect
in order to cancel the query. That way, Prisma Client’s DB connection should get closed and I’d expect that this cancels all ongoing queries. If that doesn’t work, feel free to open a feature request where you describe your use case for this so that our Product and Engineering teams can evaluate this 🙂 🙏