AzureCosmosDB / data-migration-desktop-tool

MIT License
122 stars 46 forks source link

Cosmos DB property "$type" is skipped when serializing to JSON #127

Closed mywyb2 closed 5 months ago

mywyb2 commented 5 months ago

My Cosmos DB NoSQL-container contains documents with a string property $type (possibly nested within the object), e.g.

{
    "id": "fb9351ca-6459-4b03-af08-43c488cc748d",
    "foo": {
        "$type": "typeA",
        "bar": "baz"
    }
}

Exporting the container to a JSON file results in documents where $type is skipped:

{
    "id": "fb9351ca-6459-4b03-af08-43c488cc748d",
    "foo": {
        "bar": "baz"
    }
}
bowencode commented 5 months ago

Duplicate of #97