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