Skip to content

add partial document updates#16

Merged
tomijaga merged 14 commits into0.0.1from
update
Apr 12, 2025
Merged

add partial document updates#16
tomijaga merged 14 commits into0.0.1from
update

Conversation

@tomijaga
Copy link
Copy Markdown
Member

@tomijaga tomijaga commented Jan 3, 2025

Resolves #13

Operations added

    public type UpdateFieldOperations = {
        #set : (Candid.Candid);
        #inc : (Int);
        #dec : (Int);
        #mul : (Int);
        #div : (Int);
    };

    public type UpdateOperations<Record> = {
        #doc : Record;
        #ops : [(Text, UpdateFieldOperations)];
    };

@NatLabs NatLabs deleted a comment from github-actions Bot Jan 3, 2025
@NatLabs NatLabs deleted a comment from github-actions Bot Jan 3, 2025
- Add candid_map.set() method for updating candid values
- Add support for accessing tuples in candid map ("tuple.0")
- Add support for accessing array elements in candid map
@NatLabs NatLabs deleted a comment from github-actions Bot Jan 4, 2025
@tomijaga tomijaga merged commit 0919ee1 into 0.0.1 Apr 12, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update Operations

1 participant