Papa Smerf
Explore posts from serversDIdiscord.js - Imagine ❄
•Created by Papa Smerf on 12/13/2024 in #djs-questions
Is there a way to ban user installed apps from running interactions?
As title said I want to know if there is a way to protect server against user installed apps.
9 replies
PPrisma
•Created by Papa Smerf on 11/26/2024 in #help-and-questions
Prisma.join throwing error when using edge client
prisma : 5.22.0
@prisma/client : 5.22.0
Node.js : v23.1.0
Next.JS : v15.0.3
Temporary solution (bad):
change
import { PrismaClient } from "@prisma/client/edge";
to
import { PrismaClient } from "@prisma/client";
When i tried to use Prisma.join() on raw query using edge client i got an error: TypeError: The "payload" argument must be of type object. Received null
Example query:
Any idea how to make it work on edge?
6 replies
PPrisma
•Created by Papa Smerf on 9/12/2024 in #help-and-questions
Selecting random records from table
Hi! I would like to ask more experienced people for advice/ideas on how to use prisma to get random records from a table that meet some condition. I believe that fetching all the data from the table and then selecting random records is unnecessary and suboptimal. If anyone has an idea or knows how to achieve such an effect using prism, I would be grateful. 😄
5 replies