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