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