class

Neo4j::QueryProxy

Inherits Reference / Object

works with a very simplified model of Cypher (MATCH, WHEREs, ORDER BYs, SKIP, LIMIT, RETURN)

Instance methods

add_proxy

for associations

Source
add_proxy=(add_proxy : QueryProxy | Nil)

for associations

Source
chain(proxy : QueryProxy)

chaining two proxies together will join the two match clauses and wheres (everything else will use the last value)

Source
clone_for_chain

clone the query, not the results

Source
create_merge
Source
create_merge=(create_merge : String)
Source
cypher_params
Source
cypher_query

expose query building properties to make debugging easier

Source
delete_proxy
Source
delete_proxy=(delete_proxy : QueryProxy | Nil)
Source
distinct
Source
executed?
Source
expand_where(where : Where) : ExpandedWhere

this will be overridden in subclass

Source
limit(limit : Int32) : QueryProxy
Source
limit
Source
limit=(limit : Int32)
Source
match
Source
match=(match : String)
Source
obj_variable_name
Source
obj_variable_name=(obj_variable_name : String)
Source
order(prop : Symbol | String, dir : SortDirection = Neo4j::QueryProxy::SortDirection::ASC) : QueryProxy

this form is mainly for internal use, but use it if you need it

Source
order(*params) : QueryProxy

ex: .order(:name, :created_by)

Source
order

ex: .order(name: :ASC, created_by: :desc)

Source
order_bys
Source
query_as(obj_var : Symbol | String, rel_var : Symbol | String) : QueryProxy
Source
query_as(obj_var : Symbol | String) : QueryProxy

TODO: want to expose #query_as as part of public api, but would first need to do some find/replace magic on existing match/create_merge/wheres/ret NOTE: ActiveNode called this .as, but crystal doesn't allow that name

Source
raw_result
Source
rel_variable_name
Source
rel_variable_name=(rel_variable_name : String)
Source
removes
Source
removes=(removes : Array(String))
Source
reorder(*params) : QueryProxy
Source
reorder
Source
reset_query
Source
ret=(ret : String)
Source
ret_distinct
Source
ret_distinct=(ret_distinct : Bool)
Source
return_values
Source
set(params) : QueryProxy
Source
sets
Source
skip(skip : Int32) : QueryProxy

shown here for documentation purposes, but actual definition is in macro included (type-specific subclass) due to conflict with Enumerable#skip

Source
skip
Source
skip=(skip : Int32)
Source
unorder
Source
where(str : String, **params) : QueryProxy
Source
where
Source
where_not(str : String, **params) : QueryProxy
Source
where_not
Source
wheres
Source

Nested types