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