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