Liking cljdoc? Tell your friends :D
Clojure only.

metabase.query-processor.middleware.add-implicit-joins

Middleware that creates corresponding :joins for Tables referred to by :fk-> clauses and replaces those clauses with :joined-field clauses.

Middleware that creates corresponding `:joins` for Tables referred to by `:fk->` clauses and replaces those clauses
with `:joined-field` clauses.
raw docstring

add-implicit-joinsclj

(add-implicit-joins qp)

Fetch and store any Tables other than the source Table referred to by fk-> clauses in an MBQL query, and add a :join-tables key inside the MBQL inner query containing information about the JOINs (or equivalent) that need to be performed for these tables.

This middleware also replaces all fk-> clauses with joined-field clauses, which are easier to work with.

Fetch and store any Tables other than the source Table referred to by `fk->` clauses in an MBQL query, and add a
`:join-tables` key inside the MBQL inner query containing information about the `JOIN`s (or equivalent) that need to
be performed for these tables.

This middleware also replaces all `fk->` clauses with `joined-field` clauses, which are easier to work with.
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close