Liking cljdoc? Tell your friends :D

one-to-one relationship

(heql/query-single
  db-adapter
  {[:city/city-id 3] [:city/city
                      {:city/country [:country/country]}]})

one-to-many relationship

(heql/query-single
  db-adapter
  {[:country/country-id 2] [:country/country
                            {:country/cities [:city/city]}]})

many-to-many relationship

(heql/query-single
  db-adapter
  {[:actor/actor-id 148] [:actor/first-name
                          {:actor/films [:film/title]}]})

Can you improve this documentation?Edit on GitHub

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

× close