Sha256: ad332ce3635ca21bf818345d9d415112b4af3c4c71321512111b48bca292e8cf

Contents?: true

Size: 739 Bytes

Versions: 34

Compression:

Stored size: 739 Bytes

Contents

- name: existing field - matches date with date_field
  document:
    date_field: 2020-11-19
  query:
    date_field:
      $type: 9
  matches: true

- name: existing field - matches date with time_field
  document:
    time_field: 2020-11-19 00:00:00
  query:
    time_field:
      $type: 9
  matches: true

- name: existing field - matches date with datetime_field
  document:
    datetime_field: 2020-11-19 00:00:00
  query:
    datetime_field:
      $type: 9
  matches: true

- name: existing field - matches date with default field
  document:
    day: 2020-11-19
  query:
    day:
      $type: 9
  matches: true

- name: existing field - does not match date
  document:
    name: 3
  query:
    name:
      $type: 9
  matches: false

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
mongoid-7.5.2 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.2 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.5.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.4.3 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.5.0 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.4.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.5 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.4.0 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.4 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.3 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.2 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.3.0 spec/integration/matcher_operator_data/type_date.yml