# Function generate_joined_query

- generate_joined_query(
  __namedParameters: {
  aggregations: any;
  columns: any;
  formulas: any;
  forPublic: any;
  include_fml: any;
  joinFields: any;
  layout: any;
  limit: any;
  orderBy: any;
  orderDesc: any;
  req: any;
  state: any;
  stateHash: any;
  table: any;
  user: any;
  },
  ): {
  aggregations: any;
  forPublic: boolean;
  forUser: any;
  joinFields: any;
  limit: any;
  orderBy: any;
  orderDesc: any;
  where: object;
  }

  #### Parameters

  - __namedParameters: {
    aggregations: any;
    columns: any;
    formulas: any;
    forPublic: any;
    include_fml: any;
    joinFields: any;
    layout: any;
    limit: any;
    orderBy: any;
    orderDesc: any;
    req: any;
    state: any;
    stateHash: any;
    table: any;
    user: any;
    }

  #### Returns {
  aggregations: any;
  forPublic: boolean;
  forUser: any;
  joinFields: any;
  limit: any;
  orderBy: any;
  orderDesc: any;
  where: object;
  }

  - Defined in packages/saltcorn-data/plugin-helper.js:1562