Sha256: 0a4e188fae7e7c4b86a92bbb28f5df6949d5091b0fc756e9e2653e30efa5f8c0

Contents?: true

Size: 459 Bytes

Versions: 36

Compression:

Stored size: 459 Bytes

Contents

- name: existing field - matches timestamp
  document:
    time: !ruby/object:BSON::Timestamp
      seconds: 4
      increment: 2
  query:
    time:
      $type: 17
  matches: true

- name: existing field - does not match timestamp
  document:
    name: 3
  query:
    name:
      $type: 17
  matches: false

- name: Ruby Time instance - does not match
  document:
    time_field: 2020-11-19 00:00:00
  query:
    time_field:
      $type: 17
  matches: false

Version data entries

36 entries across 36 versions & 1 rubygems

Version Path
mongoid-9.0.4 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.8 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.7 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-9.0.3 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.6 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-9.0.2 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-9.0.1 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-9.0.0 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.0.8 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.5 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.4 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.0.7 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.3 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.2 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.0.6 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-7.5.4 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.1 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.0.5 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-8.1.0 spec/integration/matcher_operator_data/type_timestamp.yml
mongoid-7.5.3 spec/integration/matcher_operator_data/type_timestamp.yml