MCPcopy
hub / github.com/logto-io/logto / camelCaseSchemaId

Function camelCaseSchemaId

packages/core/src/utils/SchemaRouter.ts:89–90  ·  view source on GitHub ↗
(schema: T)

Source from the content-addressed store, hash-verified

87 *
88 */
89const camelCaseSchemaId = <T extends { tableSingular: Table }, Table extends string>(schema: T) =>
90 `${camelcase(schema.tableSingular)}Id` as const;
91
92type SchemaRouterConfig<Key extends string> = {
93 /** Disable certain routes for the router. */

Callers 1

addRelationRoutesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected