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