Allows you to perform aggregations operations on a GuildAutoRoles.
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 GuildAutoRoles.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, GuildAutoRolesCountArgs>Arguments to filter GuildAutoRoles to count.
Create a GuildAutoRoles.
Arguments to create a GuildAutoRoles.
Create many GuildAutoRoles.
Optional
args: SelectSubset<T, GuildAutoRolesCreateManyArgs<ExtArgs>>Arguments to create many GuildAutoRoles.
Create many GuildAutoRoles and returns the data saved in the database.
Optional
args: SelectSubset<T, GuildAutoRolesCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildAutoRoles.
// Create many GuildAutoRoles
const guildAutoRoles = await prisma.guildAutoRoles.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildAutoRoles and only return the `Id`
const guildAutoRolesWithIdOnly = await prisma.guildAutoRoles.createManyAndReturn({
select: { Id: 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 GuildAutoRoles.
Arguments to delete one GuildAutoRoles.
Delete zero or more GuildAutoRoles.
Optional
args: SelectSubset<T, GuildAutoRolesDeleteManyArgs<ExtArgs>>Arguments to filter GuildAutoRoles to delete.
Find the first GuildAutoRoles 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
Optional
args: SelectSubset<T, GuildAutoRolesFindFirstArgs<ExtArgs>>Arguments to find a GuildAutoRoles
Find the first GuildAutoRoles 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
Optional
args: SelectSubset<T, GuildAutoRolesFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildAutoRoles
Find zero or more GuildAutoRoles 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
Optional
args: SelectSubset<T, GuildAutoRolesFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildAutoRoles
const guildAutoRoles = await prisma.guildAutoRoles.findMany()
// Get first 10 GuildAutoRoles
const guildAutoRoles = await prisma.guildAutoRoles.findMany({ take: 10 })
// Only select the `Id`
const guildAutoRolesWithIdOnly = await prisma.guildAutoRoles.findMany({ select: { Id: true } })
Find zero or one GuildAutoRoles that matches the filter.
Arguments to find a GuildAutoRoles
Find one GuildAutoRoles that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildAutoRoles
Group by GuildAutoRoles.
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 GuildAutoRoles.
Arguments to update one GuildAutoRoles.
Update zero or more GuildAutoRoles.
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 GuildAutoRoles and returns the data updated in the database.
Arguments to update many GuildAutoRoles.
// Update many GuildAutoRoles
const guildAutoRoles = await prisma.guildAutoRoles.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildAutoRoles and only return the `Id`
const guildAutoRolesWithIdOnly = await prisma.guildAutoRoles.updateManyAndReturn({
select: { Id: 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 GuildAutoRoles.
Arguments to update or create a GuildAutoRoles.
Fields of the GuildAutoRoles model