Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants