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