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