Query¶
Helper methods to return Neo4j::Core::Query objects. A query object can be used to successively build a cypher query
person.query_as(:n).match(‘n-[:friend]-o’).return(o: :name) # Return the names of all the person’s friends
Constants¶
Files¶
- lib/neo4j/active_node/query.rb:7
- lib/neo4j/active_node/query/query_proxy.rb:3
- lib/neo4j/active_node/query/query_proxy_link.rb:3
- lib/neo4j/active_node/query/query_proxy_methods.rb:3
- lib/neo4j/active_node/query/query_proxy_enumerable.rb:3
- lib/neo4j/active_node/query/query_proxy_eager_loading.rb:3
- lib/neo4j/active_node/query/query_proxy_find_in_batches.rb:3
Methods¶
- #as
Starts a new QueryProxy with the starting identifier set to the given argument and QueryProxy source_object set to the node instance. This method does not exist within QueryProxy and can only be used to start a new chain.
+ show/hide code
- #query_as
Returns a Query object with the current node matched the specified variable name
+ show/hide code