Allows you to perform aggregations operations on a TwitchGame.
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 TwitchGames.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, TwitchGameCountArgs<DefaultArgs>>Arguments to filter TwitchGames to count.
Create a TwitchGame.
Arguments to create a TwitchGame.
Create many TwitchGames.
Optionalargs: SelectSubset<T, TwitchGameCreateManyArgs<ExtArgs>>Arguments to create many TwitchGames.
Create many TwitchGames and returns the data saved in the database.
Optionalargs: SelectSubset<T, TwitchGameCreateManyAndReturnArgs<ExtArgs>>Arguments to create many TwitchGames.
// Create many TwitchGames
const twitchGame = await prisma.twitchGame.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many TwitchGames and only return the `dbId`
const twitchGameWithDbIdOnly = await prisma.twitchGame.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 TwitchGame.
Arguments to delete one TwitchGame.
Delete zero or more TwitchGames.
Optionalargs: SelectSubset<T, TwitchGameDeleteManyArgs<ExtArgs>>Arguments to filter TwitchGames to delete.
Find the first TwitchGame 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, TwitchGameFindFirstArgs<ExtArgs>>Arguments to find a TwitchGame
Find the first TwitchGame 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, TwitchGameFindFirstOrThrowArgs<ExtArgs>>Arguments to find a TwitchGame
Find zero or more TwitchGames 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, TwitchGameFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one TwitchGame that matches the filter.
Arguments to find a TwitchGame
Find one TwitchGame that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a TwitchGame
Group by TwitchGame.
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 TwitchGame.
Arguments to update one TwitchGame.
Update zero or more TwitchGames.
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 TwitchGames and returns the data updated in the database.
Arguments to update many TwitchGames.
// Update many TwitchGames
const twitchGame = await prisma.twitchGame.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more TwitchGames and only return the `dbId`
const twitchGameWithDbIdOnly = await prisma.twitchGame.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 TwitchGame.
Arguments to update or create a TwitchGame.
Fields of the TwitchGame model