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