Hi all, quick question about transactions.
Is it possible to run a transaction where we can get the ID of the newly created entity for the next query in a transaction?
So the equivalent to the SQL of:
Copy code
SELECT SCOPE_IDENTITY()
r
Ryan
11/01/2021, 12:23 PM
@Moh 👋
Could you explain your use case for this? Prisma's create already returns the id of the newly created entity so are you performing a different operation?