Allows you to perform aggregations operations on a WhatnotStreamer.
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 WhatnotStreamers.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, WhatnotStreamerCountArgs<DefaultArgs>>Arguments to filter WhatnotStreamers to count.
Create a WhatnotStreamer.
Arguments to create a WhatnotStreamer.
Create many WhatnotStreamers.
Optionalargs: SelectSubset<T, WhatnotStreamerCreateManyArgs<ExtArgs>>Arguments to create many WhatnotStreamers.
Create many WhatnotStreamers and returns the data saved in the database.
Optionalargs: SelectSubset<T, WhatnotStreamerCreateManyAndReturnArgs<ExtArgs>>Arguments to create many WhatnotStreamers.
// Create many WhatnotStreamers
const whatnotStreamer = await prisma.whatnotStreamer.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many WhatnotStreamers and only return the `dbId`
const whatnotStreamerWithDbIdOnly = await prisma.whatnotStreamer.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 WhatnotStreamer.
Arguments to delete one WhatnotStreamer.
Delete zero or more WhatnotStreamers.
Optionalargs: SelectSubset<T, WhatnotStreamerDeleteManyArgs<ExtArgs>>Arguments to filter WhatnotStreamers to delete.
Find the first WhatnotStreamer 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, WhatnotStreamerFindFirstArgs<ExtArgs>>Arguments to find a WhatnotStreamer
Find the first WhatnotStreamer 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, WhatnotStreamerFindFirstOrThrowArgs<ExtArgs>>Arguments to find a WhatnotStreamer
Find zero or more WhatnotStreamers 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, WhatnotStreamerFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all WhatnotStreamers
const whatnotStreamers = await prisma.whatnotStreamer.findMany()
// Get first 10 WhatnotStreamers
const whatnotStreamers = await prisma.whatnotStreamer.findMany({ take: 10 })
// Only select the `dbId`
const whatnotStreamerWithDbIdOnly = await prisma.whatnotStreamer.findMany({ select: { dbId: true } })
Find zero or one WhatnotStreamer that matches the filter.
Arguments to find a WhatnotStreamer
Find one WhatnotStreamer that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a WhatnotStreamer
Group by WhatnotStreamer.
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 WhatnotStreamer.
Arguments to update one WhatnotStreamer.
Update zero or more WhatnotStreamers.
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 WhatnotStreamers and returns the data updated in the database.
Arguments to update many WhatnotStreamers.
// Update many WhatnotStreamers
const whatnotStreamer = await prisma.whatnotStreamer.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more WhatnotStreamers and only return the `dbId`
const whatnotStreamerWithDbIdOnly = await prisma.whatnotStreamer.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 WhatnotStreamer.
Arguments to update or create a WhatnotStreamer.
Fields of the WhatnotStreamer model