Allows you to perform aggregations operations on a KSMessageWebhook.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Select which aggregations you would like to apply and on what fields.
Count the number of KSMessageWebhooks.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, KSMessageWebhookCountArgs<DefaultArgs>>Arguments to filter KSMessageWebhooks to count.
Create a KSMessageWebhook.
Arguments to create a KSMessageWebhook.
Create many KSMessageWebhooks.
Optionalargs: SelectSubset<T, KSMessageWebhookCreateManyArgs<ExtArgs>>Arguments to create many KSMessageWebhooks.
Create many KSMessageWebhooks and returns the data saved in the database.
Optionalargs: SelectSubset<T, KSMessageWebhookCreateManyAndReturnArgs<ExtArgs>>Arguments to create many KSMessageWebhooks.
// Create many KSMessageWebhooks
const kSMessageWebhook = await prisma.kSMessageWebhook.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many KSMessageWebhooks and only return the `dbId`
const kSMessageWebhookWithDbIdOnly = await prisma.kSMessageWebhook.createManyAndReturn({
select: { dbId: true },
data: [
// ... provide data here
]
})
Note, that providing `undefined` is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Delete a KSMessageWebhook.
Arguments to delete one KSMessageWebhook.
Delete zero or more KSMessageWebhooks.
Optionalargs: SelectSubset<T, KSMessageWebhookDeleteManyArgs<ExtArgs>>Arguments to filter KSMessageWebhooks to delete.
Find the first KSMessageWebhook that matches the filter.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: SelectSubset<T, KSMessageWebhookFindFirstArgs<ExtArgs>>Arguments to find a KSMessageWebhook
Find the first KSMessageWebhook that matches the filter or
throw PrismaKnownClientError with P2025 code if no matches were found.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: SelectSubset<T, KSMessageWebhookFindFirstOrThrowArgs<ExtArgs>>Arguments to find a KSMessageWebhook
Find zero or more KSMessageWebhooks that matches the filter.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: SelectSubset<T, KSMessageWebhookFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all KSMessageWebhooks
const kSMessageWebhooks = await prisma.kSMessageWebhook.findMany()
// Get first 10 KSMessageWebhooks
const kSMessageWebhooks = await prisma.kSMessageWebhook.findMany({ take: 10 })
// Only select the `dbId`
const kSMessageWebhookWithDbIdOnly = await prisma.kSMessageWebhook.findMany({ select: { dbId: true } })
Find zero or one KSMessageWebhook that matches the filter.
Arguments to find a KSMessageWebhook
Find one KSMessageWebhook that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a KSMessageWebhook
Group by KSMessageWebhook.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Group by arguments.
Update one KSMessageWebhook.
Arguments to update one KSMessageWebhook.
Update zero or more KSMessageWebhooks.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Arguments to update one or more rows.
Update zero or more KSMessageWebhooks and returns the data updated in the database.
Arguments to update many KSMessageWebhooks.
// Update many KSMessageWebhooks
const kSMessageWebhook = await prisma.kSMessageWebhook.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more KSMessageWebhooks and only return the `dbId`
const kSMessageWebhookWithDbIdOnly = await prisma.kSMessageWebhook.updateManyAndReturn({
select: { dbId: true },
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
Note, that providing `undefined` is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Create or update one KSMessageWebhook.
Arguments to update or create a KSMessageWebhook.
Fields of the KSMessageWebhook model