MCPcopy
hub / github.com/directus/directus / handler

Method handler

api/src/flows.ts:197–206  ·  view source on GitHub ↗
(payload, meta, context)

Source from the content-addressed store, hash-verified

195
196 if (flow.options['type'] === 'filter') {
197 const handler: FilterHandler = (payload, meta, context) =>
198 this.executeFlow(
199 flow,
200 { payload, ...meta },
201 {
202 accountability: context['accountability'],
203 database: context['database'],
204 getSchema: context['schema'] ? () => context['schema'] : getSchema,
205 },
206 );
207
208 events.forEach((event) => emitter.onFilter(event, handler));
209

Callers 15

validateFunction · 0.80
saveAsCSVFunction · 0.80
index.tsFile · 0.80
index.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80
index.test.tsFile · 0.80

Calls 7

executeFlowMethod · 0.95
getDatabaseFunction · 0.85
getSchemaFunction · 0.85
fetchPermissionsFunction · 0.85
getServiceFunction · 0.85
joinMethod · 0.80
readManyMethod · 0.65

Tested by

no test coverage detected