Skip to content

CDRIVER-4363 document mongoc_bulkwrite_t #1602

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

Merged
merged 18 commits into from
May 17, 2024
Merged

Conversation

kevinAlbs
Copy link
Collaborator

Summary

Add API documentation for mongoc_bulkwrite_t and related API introduced in #1590

Change the comment type to bson_value_t *.

As a drive-by improvement, sphinx-autobuild is mentioned in CONTRIBUTING.md as a convenient alternative to serving docs locally.

Background & Motivation

Description sections were mostly modeled from the API comments in the spec.

The type of comment in mongoc_bulkwriteopts_set_comment was incorrectly a bson_t * (a BSON document). It is changed to bson_value_t * (any BSON value) to better match the spec's BulkWriteOptions.comment. This follows existing C driver patterns. Example: comment is represented as bson_value_t * in mongoc_collection_aggregate.

Rendered docs can be viewed from the Files tab of this make-docs task here

@kevinAlbs kevinAlbs marked this pull request as ready for review May 16, 2024 20:13
Copy link
Contributor

@rcsanchez97 rcsanchez97 left a comment

Choose a reason for hiding this comment

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

LGTM, with a couple minor typo fix suggestions

kevinAlbs and others added 2 commits May 17, 2024 10:01
Co-authored-by: Roberto C. Sánchez <[email protected]>
Co-authored-by: Roberto C. Sánchez <[email protected]>
@kevinAlbs kevinAlbs merged commit cc3ed2c into mongodb:master May 17, 2024
43 of 45 checks passed
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.

3 participants