Allows you to perform aggregations operations on a GuildRolePanel.
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 GuildRolePanels.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildRolePanelCountArgs<DefaultArgs>>Arguments to filter GuildRolePanels to count.
Create a GuildRolePanel.
Arguments to create a GuildRolePanel.
Create many GuildRolePanels.
Optionalargs: SelectSubset<T, GuildRolePanelCreateManyArgs<ExtArgs>>Arguments to create many GuildRolePanels.
Create many GuildRolePanels and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildRolePanelCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildRolePanels.
// Create many GuildRolePanels
const guildRolePanel = await prisma.guildRolePanel.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildRolePanels and only return the `dbId`
const guildRolePanelWithDbIdOnly = await prisma.guildRolePanel.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 GuildRolePanel.
Arguments to delete one GuildRolePanel.
Delete zero or more GuildRolePanels.
Optionalargs: SelectSubset<T, GuildRolePanelDeleteManyArgs<ExtArgs>>Arguments to filter GuildRolePanels to delete.
Find the first GuildRolePanel 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, GuildRolePanelFindFirstArgs<ExtArgs>>Arguments to find a GuildRolePanel
Find the first GuildRolePanel 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, GuildRolePanelFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildRolePanel
Find zero or more GuildRolePanels 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, GuildRolePanelFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildRolePanels
const guildRolePanels = await prisma.guildRolePanel.findMany()
// Get first 10 GuildRolePanels
const guildRolePanels = await prisma.guildRolePanel.findMany({ take: 10 })
// Only select the `dbId`
const guildRolePanelWithDbIdOnly = await prisma.guildRolePanel.findMany({ select: { dbId: true } })
Find zero or one GuildRolePanel that matches the filter.
Arguments to find a GuildRolePanel
Find one GuildRolePanel that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildRolePanel
Group by GuildRolePanel.
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 GuildRolePanel.
Arguments to update one GuildRolePanel.
Update zero or more GuildRolePanels.
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 GuildRolePanels and returns the data updated in the database.
Arguments to update many GuildRolePanels.
// Update many GuildRolePanels
const guildRolePanel = await prisma.guildRolePanel.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildRolePanels and only return the `dbId`
const guildRolePanelWithDbIdOnly = await prisma.guildRolePanel.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 GuildRolePanel.
Arguments to update or create a GuildRolePanel.
Fields of the GuildRolePanel model