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