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