This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-11-06
Channels
- # babashka (62)
- # beginners (52)
- # calva (37)
- # clj-kondo (23)
- # cljs-dev (13)
- # clojure (18)
- # clojure-europe (7)
- # clojure-sg (1)
- # clojure-spec (27)
- # clojurescript (37)
- # datomic (14)
- # events (2)
- # fulcro (9)
- # graalvm (12)
- # helix (1)
- # introduce-yourself (1)
- # keyboards (3)
- # lsp (3)
- # missionary (24)
- # nextjournal (7)
- # pedestal (3)
- # polylith (15)
- # re-frame (5)
- # reitit (4)
- # releases (2)
- # shadow-cljs (54)
- # testing (7)
- # uncomplicate (4)
Is there a way to have optional arguments in queries? Like something that is either wildcard or some value
Depending on your needs you may be able to add or remove clauses conditionally. It's data after all :)
Here is how we do it, basically using map queries since those are easy to modify programmatically
@U02CV2P4J6S Like this? https://docs.datomic.com/cloud/query/query-data-reference.html#collection-binding
It depends on what you’re trying to do, but that’s one way to pass a collection of variable length and get an or
d result.