MCPcopy Create free account
hub / github.com/sourcebot-dev/sourcebot / findFirstOrThrow

Function findFirstOrThrow

packages/web/src/features/mcp/prismaScope.ts:262–265  ·  view source on GitHub ↗
({ args, query }: QueryHookParams<Prisma.UserMcpServerFindFirstOrThrowArgs>)

Source from the content-addressed store, hash-verified

260 return query(scopeUserMcpServerReadArgs(args, user));
261 },
262 async findFirstOrThrow({ args, query }: QueryHookParams<Prisma.UserMcpServerFindFirstOrThrowArgs>) {
263 assertNoUserMcpServerRelationAccess(args, 'userMcpServer.findFirstOrThrow');
264 return query(scopeUserMcpServerReadArgs(args, user));
265 },
266 async findUnique({ args, query }: QueryHookParams<Prisma.UserMcpServerFindUniqueArgs>) {
267 assertNoUserMcpServerRelationAccess(args, 'userMcpServer.findUnique');
268 // Preserve Prisma's nullable "not found" semantics for scoped reads. Callers that

Callers

nothing calls this directly

Tested by

no test coverage detected