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