...

Text file src/go.mongodb.org/mongo-driver/testdata/crud/v1/read/find-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: "Find with a collation"
     9        operation:
    10            name: "find"
    11            arguments:
    12                filter: {x: 'PING'}
    13                collation: { locale: 'en_US', strength: 2 } # https://www.mongodb.com/docs/manual/reference/collation/#collation-document
    14        outcome:
    15            result:
    16                - {_id: 1, x: 'ping'}

View as plain text