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