...

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

View as plain text