MCPcopy Create free account
hub / github.com/zenstackhq/zenstack / hasExtResultFieldDefs

Function hasExtResultFieldDefs

packages/orm/src/client/client-impl.ts:929–931  ·  view source on GitHub ↗

* Returns true if any plugin defines ext result fields for any model.

(plugins: AnyPlugin[])

Source from the content-addressed store, hash-verified

927 * Returns true if any plugin defines ext result fields for any model.
928 */
929function hasExtResultFieldDefs(plugins: AnyPlugin[]): boolean {
930 return plugins.some((p) => p.result && Object.keys(p.result).length > 0);
931}
932
933/**
934 * Collects extended result field definitions from all plugins for a given model.

Callers 1

createModelCrudHandlerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected