Allows you to perform aggregations operations on a GuildMessageEmbed.
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 GuildMessageEmbeds.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildMessageEmbedCountArgs<DefaultArgs>>Arguments to filter GuildMessageEmbeds to count.
Create a GuildMessageEmbed.
Arguments to create a GuildMessageEmbed.
Create many GuildMessageEmbeds.
Optionalargs: SelectSubset<T, GuildMessageEmbedCreateManyArgs<ExtArgs>>Arguments to create many GuildMessageEmbeds.
Create many GuildMessageEmbeds and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildMessageEmbedCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildMessageEmbeds.
// Create many GuildMessageEmbeds
const guildMessageEmbed = await prisma.guildMessageEmbed.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildMessageEmbeds and only return the `dbId`
const guildMessageEmbedWithDbIdOnly = await prisma.guildMessageEmbed.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 GuildMessageEmbed.
Arguments to delete one GuildMessageEmbed.
Delete zero or more GuildMessageEmbeds.
Optionalargs: SelectSubset<T, GuildMessageEmbedDeleteManyArgs<ExtArgs>>Arguments to filter GuildMessageEmbeds to delete.
Find the first GuildMessageEmbed 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, GuildMessageEmbedFindFirstArgs<ExtArgs>>Arguments to find a GuildMessageEmbed
Find the first GuildMessageEmbed 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, GuildMessageEmbedFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildMessageEmbed
Find zero or more GuildMessageEmbeds 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, GuildMessageEmbedFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildMessageEmbeds
const guildMessageEmbeds = await prisma.guildMessageEmbed.findMany()
// Get first 10 GuildMessageEmbeds
const guildMessageEmbeds = await prisma.guildMessageEmbed.findMany({ take: 10 })
// Only select the `dbId`
const guildMessageEmbedWithDbIdOnly = await prisma.guildMessageEmbed.findMany({ select: { dbId: true } })
Find zero or one GuildMessageEmbed that matches the filter.
Arguments to find a GuildMessageEmbed
Find one GuildMessageEmbed that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildMessageEmbed
Group by GuildMessageEmbed.
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 GuildMessageEmbed.
Arguments to update one GuildMessageEmbed.
Update zero or more GuildMessageEmbeds.
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 GuildMessageEmbeds and returns the data updated in the database.
Arguments to update many GuildMessageEmbeds.
// Update many GuildMessageEmbeds
const guildMessageEmbed = await prisma.guildMessageEmbed.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildMessageEmbeds and only return the `dbId`
const guildMessageEmbedWithDbIdOnly = await prisma.guildMessageEmbed.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 GuildMessageEmbed.
Arguments to update or create a GuildMessageEmbed.
Fields of the GuildMessageEmbed model