Allows you to perform aggregations operations on a GuildMinecraftLink.
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 GuildMinecraftLinks.
Note, that providing undefined is treated as the value not being there.
Read more here: https://pris.ly/d/null-undefined
Optionalargs: Subset<T, GuildMinecraftLinkCountArgs<DefaultArgs>>Arguments to filter GuildMinecraftLinks to count.
Create a GuildMinecraftLink.
Arguments to create a GuildMinecraftLink.
Create many GuildMinecraftLinks.
Optionalargs: SelectSubset<T, GuildMinecraftLinkCreateManyArgs<ExtArgs>>Arguments to create many GuildMinecraftLinks.
Create many GuildMinecraftLinks and returns the data saved in the database.
Optionalargs: SelectSubset<T, GuildMinecraftLinkCreateManyAndReturnArgs<ExtArgs>>Arguments to create many GuildMinecraftLinks.
// Create many GuildMinecraftLinks
const guildMinecraftLink = await prisma.guildMinecraftLink.createManyAndReturn({
data: [
// ... provide data here
]
})
// Create many GuildMinecraftLinks and only return the `dbId`
const guildMinecraftLinkWithDbIdOnly = await prisma.guildMinecraftLink.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 GuildMinecraftLink.
Arguments to delete one GuildMinecraftLink.
Delete zero or more GuildMinecraftLinks.
Optionalargs: SelectSubset<T, GuildMinecraftLinkDeleteManyArgs<ExtArgs>>Arguments to filter GuildMinecraftLinks to delete.
Find the first GuildMinecraftLink 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, GuildMinecraftLinkFindFirstArgs<ExtArgs>>Arguments to find a GuildMinecraftLink
Find the first GuildMinecraftLink 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, GuildMinecraftLinkFindFirstOrThrowArgs<ExtArgs>>Arguments to find a GuildMinecraftLink
Find zero or more GuildMinecraftLinks 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, GuildMinecraftLinkFindManyArgs<ExtArgs>>Arguments to filter and select certain fields only.
// Get all GuildMinecraftLinks
const guildMinecraftLinks = await prisma.guildMinecraftLink.findMany()
// Get first 10 GuildMinecraftLinks
const guildMinecraftLinks = await prisma.guildMinecraftLink.findMany({ take: 10 })
// Only select the `dbId`
const guildMinecraftLinkWithDbIdOnly = await prisma.guildMinecraftLink.findMany({ select: { dbId: true } })
Find zero or one GuildMinecraftLink that matches the filter.
Arguments to find a GuildMinecraftLink
Find one GuildMinecraftLink that matches the filter or throw an error with error.code='P2025'
if no matches were found.
Arguments to find a GuildMinecraftLink
Group by GuildMinecraftLink.
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 GuildMinecraftLink.
Arguments to update one GuildMinecraftLink.
Update zero or more GuildMinecraftLinks.
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 GuildMinecraftLinks and returns the data updated in the database.
Arguments to update many GuildMinecraftLinks.
// Update many GuildMinecraftLinks
const guildMinecraftLink = await prisma.guildMinecraftLink.updateManyAndReturn({
where: {
// ... provide filter here
},
data: [
// ... provide data here
]
})
// Update zero or more GuildMinecraftLinks and only return the `dbId`
const guildMinecraftLinkWithDbIdOnly = await prisma.guildMinecraftLink.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 GuildMinecraftLink.
Arguments to update or create a GuildMinecraftLink.
// Update or create a GuildMinecraftLink
const guildMinecraftLink = await prisma.guildMinecraftLink.upsert({
create: {
// ... data to create a GuildMinecraftLink
},
update: {
// ... in case it already exists, update
},
where: {
// ... the filter for the GuildMinecraftLink we want to update
}
})
Fields of the GuildMinecraftLink model