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