Documentation
    Preparing search index...

    Function get_many_to_many_relation_opts

    • Get all relations where a many to many relation through a join table is possible

      Parameters

      • source: Table

        Top view table

      • viewname: string

        Top view

      • cache:
            | {
                fieldCache: Record<string, Field[]>;
                tableIdCache: Record<number, Table>;
                tableNameCache: Record<string, Table>;
            }
            | null

        lookup cache for tables and views (can be null)

      • path: string[]

        path to the current table

      Returns Promise<{ path: string; views: View[] }[]>

      an array with the relation paths and the matching views