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