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