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