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