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