Allows you to perform aggregations operations on a Vanitys.
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 Vanitys.
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, VanitysCountArgs>Arguments to filter Vanitys to count.
Create a Vanitys.
Arguments to create a Vanitys.
Create many Vanitys.
Optional
args: SelectSubset<T, VanitysCreateManyArgs<ExtArgs>>Arguments to create many Vanitys.
Create many Vanitys and returns the data saved in the database.
Optional
args: SelectSubset<T, VanitysCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Vanitys.
// Create many Vanitys
const vanitys = await prisma.vanitys.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Vanitys and only return the `Id`
const vanitysWithIdOnly = await prisma.vanitys.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 Vanitys.
Arguments to delete one Vanitys.
Delete zero or more Vanitys.
Optional
args: SelectSubset<T, VanitysDeleteManyArgs<ExtArgs>>Arguments to filter Vanitys to delete.
Find the first Vanitys 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, VanitysFindFirstArgs<ExtArgs>>Arguments to find a Vanitys
Find the first Vanitys 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, VanitysFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Vanitys
Find zero or more Vanitys 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, VanitysFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Vanitys that matches the filter.
Arguments to find a Vanitys
Find one Vanitys that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Vanitys
Group by Vanitys.
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 Vanitys.
Arguments to update one Vanitys.
Update zero or more Vanitys.
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 Vanitys and returns the data updated in the database.
Arguments to update many Vanitys.
// Update many Vanitys
const vanitys = await prisma.vanitys.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Vanitys and only return the `Id`
const vanitysWithIdOnly = await prisma.vanitys.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 Vanitys.
Arguments to update or create a Vanitys.
Fields of the Vanitys model