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