Fork me on GitHub
#om
<
2016-09-04
>
iwankaramazow17:09:25

Are there any examples out there of parsing a union query with a join in it?

anmonteiro17:09:31

@iwankaramazow isn’t that the default?

iwankaramazow17:09:28

Let's say you extend the dashboard example with the following:

(defui Photo
  static om/IQuery
  (query [this]
    [:id :type :title :image :caption {:author [:username]})
db->tree can handle this kind of queries inside union queries?

anmonteiro17:09:45

@iwankaramazow is it failing for you somehow?

iwankaramazow17:09:08

Probably a mistake on my side.

iwankaramazow17:09:37

@anmonteiro confirmed, it was a mistake on my side 🙌

anmonteiro17:09:58

@iwankaramazow yeah I was about to paste a successful REPL interaction 🙂