Liking cljdoc? Tell your friends :D

synthigy.client.filter

Filter-condition helpers — mirror the Go (Eq/Neq/…) and JS (eq/neq/…) SDKs for parity. In Clojure these are thin sugar over plain maps; you can always write the literal ({:_eq v}) directly. The combinators and/or/not are where they earn their keep.

Alias as f and place conditions in a where map keyed by field:

(require '[synthigy.client.filter :as f]) (client/search c :user {:-where {:active (f/eq true) :age (f/gt 18)}} [:name]) (client/search c :user {:-where (f/or {:role (f/eq "admin")} {:role (f/eq "owner")})} [:name])

Filter-condition helpers — mirror the Go (Eq/Neq/…) and JS (eq/neq/…)
SDKs for parity. In Clojure these are thin sugar over plain maps; you
can always write the literal (`{:_eq v}`) directly. The combinators
and/or/not are where they earn their keep.

Alias as `f` and place conditions in a where map keyed by field:

  (require '[synthigy.client.filter :as f])
  (client/search c :user {:-where {:active (f/eq true)
                                   :age    (f/gt 18)}} [:name])
  (client/search c :user {:-where (f/or {:role (f/eq "admin")}
                                        {:role (f/eq "owner")})} [:name])
raw docstring

andclj/s

(and & clauses)
source

eqclj/s

(eq v)
source

geclj/s

(ge v)
source

gtclj/s

(gt v)
source

ilikeclj/s

(ilike p)
source

inclj/s

(in & vs)
source

is-not-nullclj/s

(is-not-null)
source

is-nullclj/s

(is-null)
source

leclj/s

(le v)
source

likeclj/s

(like p)
source

ltclj/s

(lt v)
source

neqclj/s

(neq v)
source

ninclj/s

(nin & vs)
source

notclj/s

(not clause)
source

orclj/s

(or & clauses)
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close