Method: Filemaker::Api::QueryCommands#query

Defined in:
lib/filemaker/api/query_commands/findquery.rb

#query(array_hash, options = {}) ⇒ Object

Find records using compound find query command.

query(status: ‘open’, title: ‘web’) => (q0,q1) query(status: %w(open closed)) => (q0);(q1)



9
10
11
12
13
14
15
16
17
# File 'lib/filemaker/api/query_commands/findquery.rb', line 9

def query(array_hash, options = {})
  compound_find = CompoundFind.new(array_hash)

  query_hash = compound_find.key_values.merge(
    '-query' => compound_find.key_maps_string
  )

  findquery(query_hash, options)
end