Allows you to perform aggregations operations on a Tags.
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 Tags.
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, TagsCountArgs>Arguments to filter Tags to count.
Create a Tags.
Arguments to create a Tags.
Create many Tags.
Optional
args: SelectSubset<T, TagsCreateManyArgs<ExtArgs>>Arguments to create many Tags.
Create many Tags and returns the data saved in the database.
Optional
args: SelectSubset<T, TagsCreateManyAndReturnArgs<ExtArgs>>Arguments to create many Tags.
// Create many Tags
const tags = await prisma.tags.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many Tags and only return the `Id`
const tagsWithIdOnly = await prisma.tags.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 Tags.
Arguments to delete one Tags.
Delete zero or more Tags.
Optional
args: SelectSubset<T, TagsDeleteManyArgs<ExtArgs>>Arguments to filter Tags to delete.
Find the first Tags 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, TagsFindFirstArgs<ExtArgs>>Arguments to find a Tags
Find the first Tags 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, TagsFindFirstOrThrowArgs<ExtArgs>>Arguments to find a Tags
Find zero or more Tags 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, TagsFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
Find zero or one Tags that matches the filter.
Arguments to find a Tags
Find one Tags that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a Tags
Group by Tags.
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 Tags.
Arguments to update one Tags.
Update zero or more Tags.
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 Tags and returns the data updated in the database.
Arguments to update many Tags.
// Update many Tags
const tags = await prisma.tags.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more Tags and only return the `Id`
const tagsWithIdOnly = await prisma.tags.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 Tags.
Arguments to update or create a Tags.
Fields of the Tags model