Skip to content

feat: update documents #45

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aroldanju
Copy link

No description provided.

Copy link
Owner

@pooranjoyb pooranjoyb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the next release we're planning to remove the nholman/json dependency and instead prepare the JSON with raw string.

You can refer to this commit id for the implementation.

Thanks for your contribution 👍🏼

std::string databaseId = "database123";
std::string collectionId = "test1234";
std::string documentId = "newDocument";
json data = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please create the payload using the raw strings


std::string url = Config::API_BASE_URL + "/databases/" + databaseId + "/collections/" + collectionId + "/documents/" + documentId;

json payloadJson = {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the nholman/json dependency

@pooranjoyb pooranjoyb added the commitment-issues basically stale PR label Apr 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
commitment-issues basically stale PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants