automerge-swift-archived icon indicating copy to clipboard operation
automerge-swift-archived copied to clipboard

representing dictionary/map

Open munhitsu opened this issue 2 years ago • 0 comments

Is Map something that can be exposed to the library user?

I'm looking to store in a Document something along the lines:

{
    'CardID_X': {
        'results' : [
            {
                'timestamp': timestamp in seconds from...
                'result': 0 // float - 0 - failed, 1 - passed
            }
        ]
    }
    'CardID_Y': {
    }
    'CardID_Z': {
    }
}

...so that Document optimised for retrieval and update of results for a specific key (specific value of CardID in the example above).

munhitsu avatar Jan 14 '23 23:01 munhitsu