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