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