Allows you to perform aggregations operations on a ClientBlog.
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 ClientBlogs.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, ClientBlogCountArgs<DefaultArgs>>Arguments to filter ClientBlogs to count.
Create a ClientBlog.
Arguments to create a ClientBlog.
Create many ClientBlogs.
Optionalargs: SelectSubset<T, ClientBlogCreateManyArgs<ExtArgs>>Arguments to create many ClientBlogs.
Create many ClientBlogs and returns the data saved in the database.
Optionalargs: SelectSubset<T, ClientBlogCreateManyAndReturnArgs<ExtArgs>>Arguments to create many ClientBlogs.
// Create many ClientBlogs
const clientBlog = await prisma.clientBlog.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many ClientBlogs and only return the `dbId`
const clientBlogWithDbIdOnly = await prisma.clientBlog.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 ClientBlog.
Arguments to delete one ClientBlog.
Delete zero or more ClientBlogs.
Optionalargs: SelectSubset<T, ClientBlogDeleteManyArgs<ExtArgs>>Arguments to filter ClientBlogs to delete.
Find the first ClientBlog 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, ClientBlogFindFirstArgs<ExtArgs>>Arguments to find a ClientBlog
Find the first ClientBlog 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, ClientBlogFindFirstOrThrowArgs<ExtArgs>>Arguments to find a ClientBlog
Find zero or more ClientBlogs 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, ClientBlogFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one ClientBlog that matches the filter.
Arguments to find a ClientBlog
Find one ClientBlog that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a ClientBlog
Group by ClientBlog.
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 ClientBlog.
Arguments to update one ClientBlog.
Update zero or more ClientBlogs.
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 ClientBlogs and returns the data updated in the database.
Arguments to update many ClientBlogs.
// Update many ClientBlogs
const clientBlog = await prisma.clientBlog.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more ClientBlogs and only return the `dbId`
const clientBlogWithDbIdOnly = await prisma.clientBlog.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 ClientBlog.
Arguments to update or create a ClientBlog.
Fields of the ClientBlog model