Allows you to perform aggregations operations on a Users.
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 Users.
Note, that providing undefined
is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optional
args: Subset<T, UsersCountArgs>Arguments to filter Users to count.
Create a Users.
Arguments to create a Users.
Create many Users.
Optional
args: SelectSubset<T, UsersCreateManyArgs<ExtArgs>>Arguments to create many Users.
Create many Users and returns the data saved in the database.
Optional
args: SelectSubset<T, UsersCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Users.
// Create many Users
const users = await prisma.users.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Users and only return the `Id`
const usersWithIdOnly = await prisma.users.createManyAndReturn({
select: { Id: 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 Users.
Arguments to delete one Users.
Delete zero or more Users.
Optional
args: SelectSubset<T, UsersDeleteManyArgs<ExtArgs>>Arguments to filter Users to delete.
Find the first Users 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
Optional
args: SelectSubset<T, UsersFindFirstArgs<ExtArgs>>Arguments to find a Users
Find the first Users 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
Optional
args: SelectSubset<T, UsersFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Users
Find zero or more Users 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
Optional
args: SelectSubset<T, UsersFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Users that matches the filter.
Arguments to find a Users
Find one Users that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Users
Group by Users.
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 Users.
Arguments to update one Users.
Update zero or more Users.
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 Users and returns the data updated in the database.
Arguments to update many Users.
// Update many Users
const users = await prisma.users.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Users and only return the `Id`
const usersWithIdOnly = await prisma.users.updateManyAndReturn({
select: { Id: 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 Users.
Arguments to update or create a Users.
Fields of the Users model