ExportXMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Unknown
    • 5.12.0
    • Affects Version/s: None
    • 5
    • Needed
    • Hide

      1. What would you like to communicate to the user about this feature?

      With Laravel Telescope, queries are reported as raw commands.
      It's possible to run them with mongosh
      https://github.com/mongodb/laravel-mongodb/blob/5.x/resources/boost/skills/laravel-mongodb/references/telescope.md

      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Laravel Telescope 5.27.0+
      Laravel-MongoDB 5.12.0+

      Show
      1. What would you like to communicate to the user about this feature? With Laravel Telescope, queries are reported as raw commands. It's possible to run them with mongosh https://github.com/mongodb/laravel-mongodb/blob/5.x/resources/boost/skills/laravel-mongodb/references/telescope.md 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to? Laravel Telescope 5.27.0+ Laravel-MongoDB 5.12.0+
    • None
    • None
    • None
    • None
    • None
    • None

      mshamaseen has created Issue #3530: Configuration for MongoDB Query Logging in laravel-mongodb. This Jira ticket was filed by GromNaN

      Issue Text:

      • Laravel-mongodb Version: 5.7.1
      • PHP Version: 8.4
      • Database Driver & Version:

      Description:

      Laravel Debugbar and Telescope record MongoDB queries in Canonical Extended JSON. which is not supported by default by these packages and is impossible to copy-paste into a Mongo shell.

      Expected behaviour

      Devs should be able to configure the format they want to use.

      Actual behaviour

      MongoDB log in Canonical Extended JSON format

      This is probably caused by https://github.com/mongodb/laravel-mongodb/blob/d83f1c4cb73cb4d935a3378d967af18cd61f8b8c/src/CommandSubscriber.php#L55

              Assignee:
              Jérôme Tamarelle
              Reporter:
              TPM Jira Automations Bot
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: