Sha256: 2991c6390e5b0f3bedebe6394ee34d5ee03a19498c4f758469055bf0c85e68a7

Contents?: true

Size: 411 Bytes

Versions: 39

Compression:

Stored size: 411 Bytes

Contents

- name: existing field - matches ObjectId
  document:
    new_id: !ruby/object:BSON::ObjectId
      raw_data: !binary |-
        Xt0Zj+G4MlyV5hyJ
  query:
    new_id:
      $type: 7
  matches: true

- name: integer - does not match
  document:
    pi: 3
  query:
    pi:
      $type: 7
  matches: false

- name: string - does not match
  document:
    pi: hello
  query:
    pi:
      $type: 7
  matches: false

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
mongoid-9.0.5 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.9 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.0.9 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-9.0.4 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.8 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.7 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-9.0.3 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.6 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-9.0.2 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-9.0.1 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-9.0.0 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.0.8 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.5 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.4 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.0.7 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.3 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.2 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.0.6 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-7.5.4 spec/integration/matcher_operator_data/type_object_id.yml
mongoid-8.1.1 spec/integration/matcher_operator_data/type_object_id.yml