Libraries
    Preparing search index...

    Function getProjections

    • Retrieve the named projections registered on a schema via .projection(name, columns).

      Returns a map of { [name]: { keys: readonly string[] } } where each entry's keys array contains the property keys (not SQL column names) for that projection. Returns an empty object when no projections are defined.

      Parameters

      • schema: ObjectSchemaBuilder<any, any, any, any, any, any, any>

      Returns Record<string, { keys: readonly string[] }>

      const projs = getProjections(PostSchema);
      // { summary: { keys: ['id', 'title'] } }