Allows you to perform aggregations operations on a VanityEmbedAuthor.
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 VanityEmbedAuthors.
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, VanityEmbedAuthorCountArgs>Arguments to filter VanityEmbedAuthors to count.
Create a VanityEmbedAuthor.
Arguments to create a VanityEmbedAuthor.
Create many VanityEmbedAuthors.
Optional
args: SelectSubset<T, VanityEmbedAuthorCreateManyArgs<ExtArgs>>Arguments to create many VanityEmbedAuthors.
Create many VanityEmbedAuthors and returns the data saved in the database.
Optional
args: SelectSubset<T, VanityEmbedAuthorCreateManyAndReturnArgs<ExtArgs>>Arguments to create many VanityEmbedAuthors.
// Create many VanityEmbedAuthors
const vanityEmbedAuthor = await prisma.vanityEmbedAuthor.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many VanityEmbedAuthors and only return the `Id`
const vanityEmbedAuthorWithIdOnly = await prisma.vanityEmbedAuthor.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 VanityEmbedAuthor.
Arguments to delete one VanityEmbedAuthor.
Delete zero or more VanityEmbedAuthors.
Optional
args: SelectSubset<T, VanityEmbedAuthorDeleteManyArgs<ExtArgs>>Arguments to filter VanityEmbedAuthors to delete.
Find the first VanityEmbedAuthor 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, VanityEmbedAuthorFindFirstArgs<ExtArgs>>Arguments to find a VanityEmbedAuthor
Find the first VanityEmbedAuthor 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, VanityEmbedAuthorFindFirstOrThrowArgs<ExtArgs>>Arguments to find a VanityEmbedAuthor
Find zero or more VanityEmbedAuthors 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, VanityEmbedAuthorFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all VanityEmbedAuthors
const vanityEmbedAuthors = await prisma.vanityEmbedAuthor.findMany()
// Get first 10 VanityEmbedAuthors
const vanityEmbedAuthors = await prisma.vanityEmbedAuthor.findMany({ take: 10 })
// Only select the `Id`
const vanityEmbedAuthorWithIdOnly = await prisma.vanityEmbedAuthor.findMany({ select: { Id: true } })
Find zero or one VanityEmbedAuthor that matches the filter.
Arguments to find a VanityEmbedAuthor
Find one VanityEmbedAuthor that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a VanityEmbedAuthor
Group by VanityEmbedAuthor.
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 VanityEmbedAuthor.
Arguments to update one VanityEmbedAuthor.
Update zero or more VanityEmbedAuthors.
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 VanityEmbedAuthors and returns the data updated in the database.
Arguments to update many VanityEmbedAuthors.
// Update many VanityEmbedAuthors
const vanityEmbedAuthor = await prisma.vanityEmbedAuthor.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more VanityEmbedAuthors and only return the `Id`
const vanityEmbedAuthorWithIdOnly = await prisma.vanityEmbedAuthor.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 VanityEmbedAuthor.
Arguments to update or create a VanityEmbedAuthor.
Fields of the VanityEmbedAuthor model