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