Allows you to perform aggregations operations on a GuildSingleMessageWebhook.
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 GuildSingleMessageWebhooks.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildSingleMessageWebhookCountArgs<DefaultArgs>>Arguments to filter GuildSingleMessageWebhooks to count.
Create a GuildSingleMessageWebhook.
Arguments to create a GuildSingleMessageWebhook.
Create many GuildSingleMessageWebhooks.
Optionalargs: SelectSubset<T, GuildSingleMessageWebhookCreateManyArgs<ExtArgs>>Arguments to create many GuildSingleMessageWebhooks.
Create many GuildSingleMessageWebhooks and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildSingleMessageWebhookCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildSingleMessageWebhooks.
// Create many GuildSingleMessageWebhooks
const guildSingleMessageWebhook = await prisma.guildSingleMessageWebhook.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildSingleMessageWebhooks and only return the `dbId`
const guildSingleMessageWebhookWithDbIdOnly = await prisma.guildSingleMessageWebhook.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 GuildSingleMessageWebhook.
Arguments to delete one GuildSingleMessageWebhook.
Delete zero or more GuildSingleMessageWebhooks.
Optionalargs: SelectSubset<T, GuildSingleMessageWebhookDeleteManyArgs<ExtArgs>>Arguments to filter GuildSingleMessageWebhooks to delete.
Find the first GuildSingleMessageWebhook 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, GuildSingleMessageWebhookFindFirstArgs<ExtArgs>>Arguments to find a GuildSingleMessageWebhook
Find the first GuildSingleMessageWebhook 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, GuildSingleMessageWebhookFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildSingleMessageWebhook
Find zero or more GuildSingleMessageWebhooks 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, GuildSingleMessageWebhookFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildSingleMessageWebhooks
const guildSingleMessageWebhooks = await prisma.guildSingleMessageWebhook.findMany()
// Get first 10 GuildSingleMessageWebhooks
const guildSingleMessageWebhooks = await prisma.guildSingleMessageWebhook.findMany({ take: 10 })
// Only select the `dbId`
const guildSingleMessageWebhookWithDbIdOnly = await prisma.guildSingleMessageWebhook.findMany({ select: { dbId: true } })
Find zero or one GuildSingleMessageWebhook that matches the filter.
Arguments to find a GuildSingleMessageWebhook
Find one GuildSingleMessageWebhook that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildSingleMessageWebhook
Group by GuildSingleMessageWebhook.
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 GuildSingleMessageWebhook.
Arguments to update one GuildSingleMessageWebhook.
Update zero or more GuildSingleMessageWebhooks.
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 GuildSingleMessageWebhooks and returns the data updated in the database.
Arguments to update many GuildSingleMessageWebhooks.
// Update many GuildSingleMessageWebhooks
const guildSingleMessageWebhook = await prisma.guildSingleMessageWebhook.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildSingleMessageWebhooks and only return the `dbId`
const guildSingleMessageWebhookWithDbIdOnly = await prisma.guildSingleMessageWebhook.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 GuildSingleMessageWebhook.
Arguments to update or create a GuildSingleMessageWebhook.
// Update or create a GuildSingleMessageWebhook
const guildSingleMessageWebhook = await prisma.guildSingleMessageWebhook.upsert({
create: {
// ... data to create a GuildSingleMessageWebhook
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildSingleMessageWebhook we want to update
}
})
Fields of the GuildSingleMessageWebhook model