Skip to content

An error occurs "db.heroes.insert at 1:1: Expected document" after executing "Execute All"  #2256

Open
@v-xinda

Description

@v-xinda

OS: Win10
Build Version: 20240226.3
Regression: Previous Release (0.20.1)

Repro Steps:

  1. Create a Mongo DB account -> Create a database -> Create a collection "heroes".
  2. Create a new scrapbook and type the following.
db.heroes.insert([{
	"_id": {"$oid" : "5a7e04558ceb7f33005d6134"},
    "name": "Joker",
    "saying": "Ha ha"
}, 

{
	id: 3,
    name: "Batman",
    saying: "Nanana"
}
]);

  1. Click "Execute All".
  2. Check whether no error occurs.

Expect:
No error occurs.
image

Actual:
An error occurs.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions