Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-7865

Update sample document passing to use EJSON instead of JSON

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • No version
    • Affects Version/s: 1.43.0
    • Component/s: GAI
    • None
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Developer Tools
    • 2
    • Not Needed

      Currently we're supplying sample documents to the AI prompt as a string that is a document json ified. That means an id ObjectId would be just a string likeĀ 

      '

      { "_id": "5735040085629ed4fa839473" }

      '

      Instead we should supply it as a shell syntax string, like:

      '{ "_id": ObjectId("5735040085629ed4fa839473") }'

      This will take both client side and server side changes. The CLOUDP ticket will be linked.

            Assignee:
            rhys.howell@mongodb.com Rhys Howell
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: