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

Autocomplete output on paste

    • Iteration Barcelona
    • Not Needed

      in mongosh i've typed:

      indexes = 
      

      and then pasted:

      [
      	{
      		"v" : 2,
      		"key" : {
      			"_id" : 1
      		},
      		"name" : "_id_"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"StreamId" : 1
      		},
      		"name" : "StreamId_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"BucketId" : 1
      		},
      		"name" : "BucketId_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"Payload.Labeler.EffectiveDate" : 1
      		},
      		"name" : "Payload.Labeler.EffectiveDate_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"Payload.Labeler.EndDate" : 1
      		},
      		"name" : "Payload.Labeler.EndDate_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"length" : 1
      		},
      		"name" : "length_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"Payload.Body.Labeler.EffectiveDate" : 1
      		},
      		"name" : "Payload.Body.Labeler.EffectiveDate_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"Payload.Body.Labeler.EndDate" : 1
      		},
      		"name" : "Payload.Body.Labeler.EndDate_1"
      	},
      	{
      		"v" : 2,
      		"key" : {
      			"Events.Payload.Body._t" : 1
      		},
      		"name" : "Events.Payload.Body._t_1"
      	}
      ]
      

      While pasting the output was bloated with autocomplete suggestions for each line of the pasted text (see screenshot attached).

            Assignee:
            anna.henningsen@mongodb.com Anna Henningsen
            Reporter:
            maurizio.casimirri@mongodb.com Maurizio Casimirri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: