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