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