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