Share a MongoDB investigation with a teammate

Give teammates the same starting question while letting each person supply the case ID and use their own database access. The shared file holds a query definition that can be inspected before running.

Try the failed-jobs investigation

  1. Open Library → Investigations on the sample connection and choose Investigate failed jobs.
  2. Enter CASE-1042 as the Case ID and run. The fixed query selects failed jobs. The typed input adds the case match. The unmodified sample returns five runs.
  3. Review these settings as an example of a reusable definition. The run-time case ID is entered separately.
Synthetic investigation definition
SettingSaved value
NameInvestigate failed jobs
Collectionacme.job_runs
Fixed filter{"status":"failed"}
Input label and typeCase ID · text
Match fieldcase_id
Sort and projection{} and {}
Sample failed-jobs investigation with a Case ID input and matching documents
Each teammate supplies an input and reads results on their own connection.

Publish a definition to a shared folder

  1. Choose a local or mounted folder that the intended teammates can access. Run the desired find and create a New investigation. Choose its name, parameter label, type and match field.
  2. Check the fixed filter, sort and projection. Fixed literals are visible to people who can read the definition file. Save the definition to the selected folder.
  3. A teammate selects the same folder and opens the definition using their own eligible MongoDB connection. The folder grants access to the definition; MongoDB roles determine which data the teammate can read.

Review a teammate’s changes

A new publication has a revision. Refresh if somebody else has published a newer version and review its fixed query before running or updating it. Choose the intended profile and database when applying shared work to another environment.

Entered parameter values and returned documents stay out of the saved definition. A sensitive literal placed in the fixed query will be present on disk. Use parameter inputs for varying identifiers and manage membership of the shared folder.