Allows you to perform aggregations operations on a GuildStatusRoleFilter.
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 GuildStatusRoleFilters.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildStatusRoleFilterCountArgs<DefaultArgs>>Arguments to filter GuildStatusRoleFilters to count.
Create a GuildStatusRoleFilter.
Arguments to create a GuildStatusRoleFilter.
Create many GuildStatusRoleFilters.
Optionalargs: SelectSubset<T, GuildStatusRoleFilterCreateManyArgs<ExtArgs>>Arguments to create many GuildStatusRoleFilters.
Create many GuildStatusRoleFilters and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildStatusRoleFilterCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildStatusRoleFilters.
// Create many GuildStatusRoleFilters
const guildStatusRoleFilter = await prisma.guildStatusRoleFilter.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildStatusRoleFilters and only return the `dbId`
const guildStatusRoleFilterWithDbIdOnly = await prisma.guildStatusRoleFilter.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 GuildStatusRoleFilter.
Arguments to delete one GuildStatusRoleFilter.
Delete zero or more GuildStatusRoleFilters.
Optionalargs: SelectSubset<T, GuildStatusRoleFilterDeleteManyArgs<ExtArgs>>Arguments to filter GuildStatusRoleFilters to delete.
Find the first GuildStatusRoleFilter 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, GuildStatusRoleFilterFindFirstArgs<ExtArgs>>Arguments to find a GuildStatusRoleFilter
Find the first GuildStatusRoleFilter 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, GuildStatusRoleFilterFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildStatusRoleFilter
Find zero or more GuildStatusRoleFilters 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, GuildStatusRoleFilterFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildStatusRoleFilters
const guildStatusRoleFilters = await prisma.guildStatusRoleFilter.findMany()
// Get first 10 GuildStatusRoleFilters
const guildStatusRoleFilters = await prisma.guildStatusRoleFilter.findMany({ take: 10 })
// Only select the `dbId`
const guildStatusRoleFilterWithDbIdOnly = await prisma.guildStatusRoleFilter.findMany({ select: { dbId: true } })
Find zero or one GuildStatusRoleFilter that matches the filter.
Arguments to find a GuildStatusRoleFilter
Find one GuildStatusRoleFilter that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildStatusRoleFilter
Group by GuildStatusRoleFilter.
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 GuildStatusRoleFilter.
Arguments to update one GuildStatusRoleFilter.
Update zero or more GuildStatusRoleFilters.
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 GuildStatusRoleFilters and returns the data updated in the database.
Arguments to update many GuildStatusRoleFilters.
// Update many GuildStatusRoleFilters
const guildStatusRoleFilter = await prisma.guildStatusRoleFilter.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildStatusRoleFilters and only return the `dbId`
const guildStatusRoleFilterWithDbIdOnly = await prisma.guildStatusRoleFilter.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 GuildStatusRoleFilter.
Arguments to update or create a GuildStatusRoleFilter.
// Update or create a GuildStatusRoleFilter
const guildStatusRoleFilter = await prisma.guildStatusRoleFilter.upsert({
create: {
// ... data to create a GuildStatusRoleFilter
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildStatusRoleFilter we want to update
}
})
Fields of the GuildStatusRoleFilter model