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