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