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