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