Sha256: 7a7d11ae704b4309b6b01f3f27c63a0c538f627be7554fcc107d88d8bbba3623

Contents?: true

Size: 881 Bytes

Versions: 19

Compression:

Stored size: 881 Bytes

Contents

- name: Decimal128 in untyped field - matches
  document:
    number: !ruby/object:BSON::Decimal128
      low: 4224
      high: 3475653012423180288
  query:
    number:
      $type: 19
  matches: true
  min_server_version: 3.4

- name: Decimal128 field - matches
  document:
    decimal128_field: !ruby/object:BSON::Decimal128
      low: 4224
      high: 3475653012423180288
  query:
    decimal128_field:
      $type: 19
  matches: true
  min_server_version: 3.4

- name: existing field - does not match decimal
  document:
    name: "foo"
  query:
    name:
      $type: 19
  matches: false
  min_server_version: 3.4

# Requires :map_big_decimal_to_decimal128 option to be true.
- name: BigDecimal field - matches
  document:
    big_decimal_field: !ruby/object:BigDecimal
      18:0.42e2
  query:
    big_decimal_field:
      $type: 19
  matches: true
  min_server_version: 3.4

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
mongoid-8.1.9 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.9 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.8 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.7 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.6 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.8 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.5 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.4 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.7 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.3 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.2 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.6 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.1 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.5 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.1.0 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.4 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.3 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.2 spec/integration/matcher_operator_data/type_decimal.yml
mongoid-8.0.1 spec/integration/matcher_operator_data/type_decimal.yml