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-8.1.7 spec/integration/matcher_operator_data/type_date.yml
mongoid-9.0.3 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.6 spec/integration/matcher_operator_data/type_date.yml
mongoid-9.0.2 spec/integration/matcher_operator_data/type_date.yml
mongoid-9.0.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-9.0.0 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.8 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.5 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.4 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.7 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.3 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.2 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.6 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.5.4 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.1 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.5 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.1.0 spec/integration/matcher_operator_data/type_date.yml
mongoid-7.5.3 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.4 spec/integration/matcher_operator_data/type_date.yml
mongoid-8.0.3 spec/integration/matcher_operator_data/type_date.yml