Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-376

Shell evaluator should include metadata together with the result

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 0.5.0
    • Affects Version/s: None
    • Component/s: Shell API
    • None
    • Not Needed

      During the project kickoff for Document Editing (VSCODE-106), we realized that the mongosh evaluator only returns the result of the last statement that is executed. This is not enough information for the document editing experience where we need:

      1. to identify what type of result is being returned, to decide whether the documents are editable or not
      2. when the results comes from a query or aggregation, to identify what database and collection the find was executed on

      Therefore:

      1. The evaluator of mongosh should provide db and collection to be able to find the document that should be updated
      2. The evaluator of mongosh returns not only the result value back but also the type of the last executed command.

      Some more details are available in the project's tech design doc.

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            massimiliano.marcon@mongodb.com Massimiliano Marcon
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: