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