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