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