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