Sha256: c4d1b0593193b83af697c9f45eacd0797ded64d7d2abe80cbc5f5d23a30c562f

Contents?: true

Size: 638 Bytes

Versions: 42

Compression:

Stored size: 638 Bytes

Contents

- name: array query
  document:
    products: [1, 2, 3]
  query:
    []
  error: true

- name: null query
  document:
    products: [1, 2, 3]
  query: ~
  error: [matcher, dsl]
  # Driver appears to accept the null query.
  matches: true

- name: numeric query
  document:
    products: [1, 2, 3]
  query: 42
  error: true

- name: string query
  document:
    products: [1, 2, 3]
  query: test
  error: true

- name: string query with punctuation
  document:
    products: [1, 2, 3]
  query: "!>"
  error: true

# This one is actually valid.
- name: query is an empty hash
  document:
    products: [1, 2, 3]
  query: {}
  matches: true

Version data entries

42 entries across 42 versions & 1 rubygems

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