lib/model/the_record.rb
Query uses the current model-record  as origin of the query.

It sends the OrientSupport::OrientQuery directly to the database and returns an 
ActiveOrient::Model-Object or an Array of Model-Objects as result. 

*Usage:* Query the Database by traversing through edges and vertices starting at a known location

Query uses the current model-record  as origin of the query.
It sends the OrientSupport::OrientQuery directly to the database and returns an
ActiveOrient::Model-Object or an Array of Model-Objects as result.

Query the Database by traversing through edges and vertices starting at a known location
Query uses the current model - record as origin of the query . It sends the OrientSupport :: OrientQuery directly to the database and returns an ActiveOrient :: Model - Object or an Array of Model - Objects as result . Query the Database by traversing through edges and vertices starting at a known location
def query query
    sql_cmd = -> (command) {{ type: "cmd", language: "sql", command: command }}
    result = orientdb.execute do
      sql_cmd[query.to_s]
    end
    if result.is_a? Array
      OrientSupport::Array.new work_on: self, work_with: result
    else
      result
    end  
   end
def query query sql_cmd = -> ( command ) { { type : "cmd" , language : "sql" , command : command } } result = orientdb . execute do sql_cmd [ query . to_s ] end if result . is_a? Array OrientSupport :: Array . new work_on : self , work_with : result else result end end
Query uses the current model-record  as origin of the query.
Query uses the current model - record as origin of the query .
# return value
query
<not_specific>