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