Skip to content
This repository was archived by the owner on Mar 10, 2025. It is now read-only.

updateDocument() method for model-instance-client #39

Merged
merged 12 commits into from
Dec 11, 2024

Conversation

mzkrasner
Copy link
Contributor

  • Adds a method to post an update to a document that optionally obtains docstate first
  • Uses existing getDocumentState() method if StreamState is not provided in arguments
  • Relies on existing postData() method which uses the createDataEvent() method to access JSON diffing
  • Requires newContent and currentContent to be defined - throws an error if currentContent is either not provided or cannot be fetched from StreamState

@mzkrasner mzkrasner requested a review from nathanielc December 9, 2024 22:45
@mzkrasner mzkrasner merged commit 32d429a into main Dec 11, 2024
10 checks passed
@mzkrasner mzkrasner deleted the feat/model-instance-client-updateDocument branch December 11, 2024 20:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants