bson/testdata/unified-test-format/valid-pass/matches-lte-operator.json
2025-03-17 20:58:26 +01:00

79 lines
1.6 KiB
JSON

{
"description": "matches-lte-operator",
"schemaVersion": "1.5",
"createEntities": [
{
"client": {
"id": "client0",
"observeEvents": [
"commandStartedEvent"
]
}
},
{
"database": {
"id": "database0",
"client": "client0",
"databaseName": "database0Name"
}
},
{
"collection": {
"id": "collection0",
"database": "database0",
"collectionName": "coll0"
}
}
],
"initialData": [
{
"collectionName": "coll0",
"databaseName": "database0Name",
"documents": []
}
],
"tests": [
{
"description": "special lte matching operator",
"operations": [
{
"name": "insertOne",
"object": "collection0",
"arguments": {
"document": {
"_id": 1,
"y": 1
}
}
}
],
"expectEvents": [
{
"client": "client0",
"events": [
{
"commandStartedEvent": {
"command": {
"insert": "coll0",
"documents": [
{
"_id": {
"$$lte": 1
},
"y": {
"$$lte": 2
}
}
]
},
"commandName": "insert",
"databaseName": "database0Name"
}
}
]
}
]
}
]
}