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