Allows you to perform aggregations operations on a GuildInGameReward.
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 GuildInGameRewards.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildInGameRewardCountArgs<DefaultArgs>>Arguments to filter GuildInGameRewards to count.
Create a GuildInGameReward.
Arguments to create a GuildInGameReward.
Create many GuildInGameRewards.
Optionalargs: SelectSubset<T, GuildInGameRewardCreateManyArgs<ExtArgs>>Arguments to create many GuildInGameRewards.
Create many GuildInGameRewards and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildInGameRewardCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildInGameRewards.
// Create many GuildInGameRewards
const guildInGameReward = await prisma.guildInGameReward.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildInGameRewards and only return the `dbId`
const guildInGameRewardWithDbIdOnly = await prisma.guildInGameReward.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 GuildInGameReward.
Arguments to delete one GuildInGameReward.
Delete zero or more GuildInGameRewards.
Optionalargs: SelectSubset<T, GuildInGameRewardDeleteManyArgs<ExtArgs>>Arguments to filter GuildInGameRewards to delete.
Find the first GuildInGameReward 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, GuildInGameRewardFindFirstArgs<ExtArgs>>Arguments to find a GuildInGameReward
Find the first GuildInGameReward 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, GuildInGameRewardFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildInGameReward
Find zero or more GuildInGameRewards 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, GuildInGameRewardFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildInGameRewards
const guildInGameRewards = await prisma.guildInGameReward.findMany()
// Get first 10 GuildInGameRewards
const guildInGameRewards = await prisma.guildInGameReward.findMany({ take: 10 })
// Only select the `dbId`
const guildInGameRewardWithDbIdOnly = await prisma.guildInGameReward.findMany({ select: { dbId: true } })
Find zero or one GuildInGameReward that matches the filter.
Arguments to find a GuildInGameReward
Find one GuildInGameReward that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildInGameReward
Group by GuildInGameReward.
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 GuildInGameReward.
Arguments to update one GuildInGameReward.
Update zero or more GuildInGameRewards.
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 GuildInGameRewards and returns the data updated in the database.
Arguments to update many GuildInGameRewards.
// Update many GuildInGameRewards
const guildInGameReward = await prisma.guildInGameReward.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildInGameRewards and only return the `dbId`
const guildInGameRewardWithDbIdOnly = await prisma.guildInGameReward.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 GuildInGameReward.
Arguments to update or create a GuildInGameReward.
Fields of the GuildInGameReward model