Method: Graphiti::Adapters::Abstract.default_operators

Defined in:
lib/graphiti/adapters/abstract.rb

.default_operatorsObject



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'lib/graphiti/adapters/abstract.rb', line 27

def self.default_operators
  {
    string: [
      :eq,
      :not_eq,
      :eql,
      :not_eql,
      :prefix,
      :not_prefix,
      :suffix,
      :not_suffix,
      :match,
      :not_match
    ],
    uuid: [:eq, :not_eq],
    enum: [:eq, :not_eq],
    integer_id: numerical_operators,
    integer: numerical_operators,
    big_decimal: numerical_operators,
    float: numerical_operators,
    boolean: [:eq],
    date: numerical_operators,
    datetime: numerical_operators,
    hash: [:eq],
    array: [:eq]
  }
end