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

Function $allOperations

packages/web/src/prisma.ts:41–52  ·  view source on GitHub ↗
({ args, query })

Source from the content-addressed store, hash-verified

39 ...(hasPermissionSyncing ? {
40 repo: {
41 async $allOperations({ args, query }) {
42 const argsWithWhere = args as Record<string, unknown> & {
43 where?: Prisma.RepoWhereInput;
44 }
45
46 argsWithWhere.where = {
47 ...(argsWithWhere.where || {}),
48 ...getRepoPermissionFilterForUser(user),
49 };
50
51 return query(args);
52 }
53 },
54 searchContext: {
55 async $allOperations({ args, query }) {

Callers

nothing calls this directly

Tested by

no test coverage detected