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