Allows you to perform aggregations operations on a GuildInteractionPermissions.
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 GuildInteractionPermissions.
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, GuildInteractionPermissionsCountArgs>Arguments to filter GuildInteractionPermissions to count.
Create a GuildInteractionPermissions.
Arguments to create a GuildInteractionPermissions.
Create many GuildInteractionPermissions.
Optional
args: SelectSubset<T, GuildInteractionPermissionsCreateManyArgs<ExtArgs>>Arguments to create many GuildInteractionPermissions.
Create many GuildInteractionPermissions and returns the data saved in the database.
Optional
args: SelectSubset<T, GuildInteractionPermissionsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildInteractionPermissions.
// Create many GuildInteractionPermissions
const guildInteractionPermissions = await prisma.guildInteractionPermissions.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildInteractionPermissions and only return the `Id`
const guildInteractionPermissionsWithIdOnly = await prisma.guildInteractionPermissions.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 GuildInteractionPermissions.
Arguments to delete one GuildInteractionPermissions.
Delete zero or more GuildInteractionPermissions.
Optional
args: SelectSubset<T, GuildInteractionPermissionsDeleteManyArgs<ExtArgs>>Arguments to filter GuildInteractionPermissions to delete.
Find the first GuildInteractionPermissions 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, GuildInteractionPermissionsFindFirstArgs<ExtArgs>>Arguments to find a GuildInteractionPermissions
Find the first GuildInteractionPermissions 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, GuildInteractionPermissionsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildInteractionPermissions
Find zero or more GuildInteractionPermissions 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, GuildInteractionPermissionsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildInteractionPermissions
const guildInteractionPermissions = await prisma.guildInteractionPermissions.findMany()
// Get first 10 GuildInteractionPermissions
const guildInteractionPermissions = await prisma.guildInteractionPermissions.findMany({ take: 10 })
// Only select the `Id`
const guildInteractionPermissionsWithIdOnly = await prisma.guildInteractionPermissions.findMany({ select: { Id: true } })
Find zero or one GuildInteractionPermissions that matches the filter.
Arguments to find a GuildInteractionPermissions
Find one GuildInteractionPermissions that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildInteractionPermissions
Group by GuildInteractionPermissions.
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 GuildInteractionPermissions.
Arguments to update one GuildInteractionPermissions.
Update zero or more GuildInteractionPermissions.
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 GuildInteractionPermissions and returns the data updated in the database.
Arguments to update many GuildInteractionPermissions.
// Update many GuildInteractionPermissions
const guildInteractionPermissions = await prisma.guildInteractionPermissions.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildInteractionPermissions and only return the `Id`
const guildInteractionPermissionsWithIdOnly = await prisma.guildInteractionPermissions.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 GuildInteractionPermissions.
Arguments to update or create a GuildInteractionPermissions.
// Update or create a GuildInteractionPermissions
const guildInteractionPermissions = await prisma.guildInteractionPermissions.upsert({
create: {
// ... data to create a GuildInteractionPermissions
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildInteractionPermissions we want to update
}
})
Fields of the GuildInteractionPermissions model