Allows you to perform aggregations operations on a MessageTemplates.
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 MessageTemplates.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, MessageTemplatesCountArgs>Arguments to filter MessageTemplates to count.
Create a MessageTemplates.
Arguments to create a MessageTemplates.
Create many MessageTemplates.
Optional
args: SelectSubset<T, MessageTemplatesCreateManyArgs<ExtArgs>>Arguments to create many MessageTemplates.
Create many MessageTemplates and returns the data saved in the database.
Optional
args: SelectSubset<T, MessageTemplatesCreateManyAndReturnArgs<ExtArgs>>Arguments to create many MessageTemplates.
// Create many MessageTemplates
const messageTemplates = await prisma.messageTemplates.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many MessageTemplates and only return the `Id`
const messageTemplatesWithIdOnly = await prisma.messageTemplates.createManyAndReturn({
select: { Id: 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 MessageTemplates.
Arguments to delete one MessageTemplates.
Delete zero or more MessageTemplates.
Optional
args: SelectSubset<T, MessageTemplatesDeleteManyArgs<ExtArgs>>Arguments to filter MessageTemplates to delete.
Find the first MessageTemplates 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
Optional
args: SelectSubset<T, MessageTemplatesFindFirstArgs<ExtArgs>>Arguments to find a MessageTemplates
Find the first MessageTemplates 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
Optional
args: SelectSubset<T, MessageTemplatesFindFirstOrThrowArgs<ExtArgs>>Arguments to find a MessageTemplates
Find zero or more MessageTemplates 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
Optional
args: SelectSubset<T, MessageTemplatesFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all MessageTemplates
const messageTemplates = await prisma.messageTemplates.findMany()
// Get first 10 MessageTemplates
const messageTemplates = await prisma.messageTemplates.findMany({ take: 10 })
// Only select the `Id`
const messageTemplatesWithIdOnly = await prisma.messageTemplates.findMany({ select: { Id: true } })
Find zero or one MessageTemplates that matches the filter.
Arguments to find a MessageTemplates
Find one MessageTemplates that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a MessageTemplates
Group by MessageTemplates.
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 MessageTemplates.
Arguments to update one MessageTemplates.
Update zero or more MessageTemplates.
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 MessageTemplates and returns the data updated in the database.
Arguments to update many MessageTemplates.
// Update many MessageTemplates
const messageTemplates = await prisma.messageTemplates.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more MessageTemplates and only return the `Id`
const messageTemplatesWithIdOnly = await prisma.messageTemplates.updateManyAndReturn({
select: { Id: 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 MessageTemplates.
Arguments to update or create a MessageTemplates.
Fields of the MessageTemplates model