question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cleanup old non-$ methods

See original GitHub issue

We still have a few methods on Prisma Client, like .transaction from the pre-$ days. We deprecated these methods already a few sprints ago, so it’s time to clean them up.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
janpiocommented, Nov 11, 2020

This is going to be worked on in the next 2 weeks.

2reactions
erawkcommented, Nov 11, 2020

This conflict on prisma.transaction is preventing us from upgrading to 2.11.x. We have a model and table named transaction, so usage of it as say prisma.transaction.aggregate throws type errors:

src/modules/accounts/modelHelpers.ts:40:44 - error TS2339: Property 'aggregate' does not exist on type '{ <TAll>(values: Iterable<TAll | PromiseLike<TAll>>): Promise<TAll[]>; <T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(values: readonly [T1 | PromiseLike<T1>, T2 | PromiseLike<...>, ... 7 more ..., T10 | PromiseLike<...>]): Promise<...>; <T1, T2, T3, T4, T5, T6, T7, T8, T9>(values: readonly [...]): Promise<...>; <T1, T2, ...'.

40   const { sum } = await prisma.transaction.aggregate({
                                              ~~~~~~~~~

This worked fine in 2.10.x.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Clean up Active Directory Domain Controller server metadata
Metadata cleanup is a required procedure after a forced removal of Active Directory Domain Services (AD DS). You perform metadata cleanup on ...
Read more >
How to Delete Old Windows Update Files - MakeUseOf
1. Delete Old Windows Update Files by Disk Cleanup · Open the Start menu, type Control Panel, and press Enter. · Go to...
Read more >
8 Simple Ways To Clean Up Your Windows 11/10 PC
8 Simple Ways To Clean Up Your Windows 11/10 PC · Remove Unwanted Apps To Clean Up Your PC · Use Disk Cleanup...
Read more >
Solved: Can't Remove Windows.old Folder in Windows 11/10
Method 1. Delete Windows.old Folder in Windows 11/10 Using Use Disk Cleanup · Press Windows + E, click This PC. · Right-click the...
Read more >
How to remove old Docker containers - Stack Overflow
Another method, which I got from Guillaume J. Charmes (credit where it is due): docker rm `docker ps --no-trunc -aq`. will remove all...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found