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