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