Skip to content

Add JSON and CSV output to change-stream-monitor snippet #11

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 7 commits into
base: main
Choose a base branch
from

Conversation

edmallia
Copy link
Contributor

@edmallia edmallia commented Apr 9, 2025

Add JSON and CSV output to change-stream-monitor snippet.

  • listChangeStreamsAsTable(extended?: boolean, allUsers?: boolean, nsFilter?: Array) :
    Alias for listChangeStreams(extended?: boolean, allUsers?: boolean, nsFilter?: Array<string>)
  • listChangeStreamsAsJSON(extended?: boolean, allUsers?: boolean, nsFilter?: Array)
  • listChangeStreamsAsCSV(extended?: boolean, delimiter: string, allUsers?: boolean, nsFilter?: Array)

edmallia added 7 commits April 3, 2025 11:44
Adds capability to generate the monitor's output in CSV (with custom delimiter) and in JSON format.

Still pending: update documentation.
Remove unnecessary output
Changes order of arguments in listChangeStreamsAsCSV
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.

1 participant