...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/read/count-collation.yml

Documentation: go.mongodb.org/mongo-driver/testdata/crud/v1/read

     1data:
     2    - {_id: 1, x: 'PING'}
     3minServerVersion: '3.4'
     4serverless: 'forbid'
     5
     6tests:
     7    -
     8        description: "Count documents with collation"
     9        operation:
    10            name: countDocuments
    11            arguments:
    12                filter: { x: 'ping' }
    13                collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
    14
    15        outcome:
    16            result: 1
    17    -
    18        description: "Deprecated count with collation"
    19        operation:
    20            name: count
    21            arguments:
    22                filter: { x: 'ping' }
    23                collation: { locale: 'en_US', strength: 2 }
    24
    25        outcome:
    26            result: 1

View as plain text