(compile query)
Compiles a query definition to query AST. See Query-Def schema.
Compiles a query definition to query AST. See Query-Def schema.
(difference a b)
Difference of two queries. Given A and B, what A has that B doesn't?
Difference of two queries. Given A and B, what A has that B doesn't?
(execute query node)
(execute query node ctx)
Executes a query against a node or a value in an optional context. A node is:
Executes a query against a node or a value in an optional context. A node is: - a map of nodes and/or values - a vector of nodes and/or values - a function (ctx, AST -> node or value) - a function (ctx, AST -> promise with node or value) A value is anything else. Nodes get queried according to the query's structure, values get returned as they are.
(intersection a b)
Intersection of two queries.
Intersection of two queries.
(union a b)
Union of two queries. Note that this may produce a query with the same props. users('Alice') UNION users('Bob') will result in users('Alice'), users('Bob'). Since the result of execution of props is a map, executing that query may give unexpected results ('Bob' overriding 'Alice'). Use aliases to avoid that situation.
Union of two queries. Note that this may produce a query with the same props. users('Alice') UNION users('Bob') will result in users('Alice'), users('Bob'). Since the result of execution of props is a map, executing that query may give unexpected results ('Bob' overriding 'Alice'). Use aliases to avoid that situation.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close