UNPKG

@directus/api

Version:

Directus is a real-time API and App dashboard for managing SQL database content

9 lines (8 loc) 278 B
//#region src/utils/schema/is-in-scope.ts /** Keep entities within the requested collection scope. A `null` scope matches everything. */ function isInScope(item, scope) { if (scope === null) return true; return scope.has(item.collection); } //#endregion export { isInScope };