breadsystems / bread-cms

A powerful, opinionated Clojure/Script library for building custom Content Management Systems
Eclipse Public License 1.0
18 stars 2 forks source link

Consolidate queries #86

Closed acobster closed 8 months ago

acobster commented 8 months ago

I18n queries can be faster and more concise if we combine them instead of splitting them out into separate per-binding queries for filtering, formatting, compaction.

{:query/key :post
 :query/name ::i18n/fields
 :spaths [[:post/_taxons s/ALL :translatable/fields] [:translatable/fields]]
 :field/lang :ar
 :format? true
 :compact? true}