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