...

Text file src/go.mongodb.org/mongo-driver/testdata/mongocrypt/collection-info.json

Documentation: go.mongodb.org/mongo-driver/testdata/mongocrypt

     1{
     2    "type": "collection",
     3    "name": "test",
     4    "idIndex": {
     5        "ns": "test.test",
     6        "name": "_id_",
     7        "key": {
     8            "_id": {
     9                "$numberInt": "1"
    10            }
    11        },
    12        "v": {
    13            "$numberInt": "2"
    14        }
    15    },
    16    "options": {
    17        "validator": {
    18            "$jsonSchema": {
    19                "properties": {
    20                    "ssn": {
    21                        "encrypt": {
    22                            "keyId": {
    23                                "$binary": {
    24                                    "base64": "YWFhYWFhYWFhYWFhYWFhYQ==",
    25                                    "subType": "04"
    26                                }
    27                            },
    28                            "type": "string",
    29                            "algorithm": "AEAD_AES_CBC_HMAC_SHA512-Deterministic"
    30                        }
    31                    }
    32                },
    33                "bsonType": "object"
    34            }
    35        }
    36    }
    37}

View as plain text