MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / withQueryContext

Function withQueryContext

packages/core/fumadb/src/query/orm/index.ts:630–639  ·  view source on GitHub ↗
(
  db: AbstractQuery<S>,
  context: TContext,
)

Source from the content-addressed store, hash-verified

628}
629
630export function withQueryContext<S extends AnySchema, TContext>(
631 db: AbstractQuery<S>,
632 context: TContext,
633): AbstractQuery<S> {
634 if (typeof db.withContext === "function") return db.withContext(context);
635
636 throw new Error(
637 "[FumaDB] Cannot apply query context to this query object. If you wrap an AbstractQuery, forward withContext so table policies keep using the wrapper.",
638 );
639}

Callers 15

touchSubjectFunction · 0.90
createExecutorFunction · 0.90
makeAdminFunction · 0.90
getFunction · 0.90
makeTestConfigFunction · 0.90
oauth-flow.test.tsFile · 0.90
scopedToFunction · 0.90
subjectsOfFunction · 0.90

Calls

no outgoing calls

Tested by 7

scopedToFunction · 0.72
subjectsOfFunction · 0.72
getFunction · 0.72
seedTenantsFunction · 0.72
upsertIntraCallConflictFunction · 0.72
subjectsOfFunction · 0.72