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