Allows you to perform aggregations operations on a CSMessageWebhook.
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 CSMessageWebhooks.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, CSMessageWebhookCountArgs<DefaultArgs>>Arguments to filter CSMessageWebhooks to count.
Create a CSMessageWebhook.
Arguments to create a CSMessageWebhook.
Create many CSMessageWebhooks.
Optionalargs: SelectSubset<T, CSMessageWebhookCreateManyArgs<ExtArgs>>Arguments to create many CSMessageWebhooks.
Create many CSMessageWebhooks and returns the data saved in the database.
Optionalargs: SelectSubset<T, CSMessageWebhookCreateManyAndReturnArgs<ExtArgs>>Arguments to create many CSMessageWebhooks.
// Create many CSMessageWebhooks
const cSMessageWebhook = await prisma.cSMessageWebhook.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many CSMessageWebhooks and only return the `dbId`
const cSMessageWebhookWithDbIdOnly = await prisma.cSMessageWebhook.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 CSMessageWebhook.
Arguments to delete one CSMessageWebhook.
Delete zero or more CSMessageWebhooks.
Optionalargs: SelectSubset<T, CSMessageWebhookDeleteManyArgs<ExtArgs>>Arguments to filter CSMessageWebhooks to delete.
Find the first CSMessageWebhook 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, CSMessageWebhookFindFirstArgs<ExtArgs>>Arguments to find a CSMessageWebhook
Find the first CSMessageWebhook 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, CSMessageWebhookFindFirstOrThrowArgs<ExtArgs>>Arguments to find a CSMessageWebhook
Find zero or more CSMessageWebhooks 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, CSMessageWebhookFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all CSMessageWebhooks
const cSMessageWebhooks = await prisma.cSMessageWebhook.findMany()
// Get first 10 CSMessageWebhooks
const cSMessageWebhooks = await prisma.cSMessageWebhook.findMany({ take: 10 })
// Only select the `dbId`
const cSMessageWebhookWithDbIdOnly = await prisma.cSMessageWebhook.findMany({ select: { dbId: true } })
Find zero or one CSMessageWebhook that matches the filter.
Arguments to find a CSMessageWebhook
Find one CSMessageWebhook that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a CSMessageWebhook
Group by CSMessageWebhook.
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 CSMessageWebhook.
Arguments to update one CSMessageWebhook.
Update zero or more CSMessageWebhooks.
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 CSMessageWebhooks and returns the data updated in the database.
Arguments to update many CSMessageWebhooks.
// Update many CSMessageWebhooks
const cSMessageWebhook = await prisma.cSMessageWebhook.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more CSMessageWebhooks and only return the `dbId`
const cSMessageWebhookWithDbIdOnly = await prisma.cSMessageWebhook.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 CSMessageWebhook.
Arguments to update or create a CSMessageWebhook.
Fields of the CSMessageWebhook model