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