Skip to content

[Bug]: Deleting/dropping a MongoDB collection via UI fails with "Invalid MongoDB syntax" #2581

Description

@0xRahad

What happened?

When connected to a MongoDB instance, attempting to delete or drop a collection using the UI action (e.g., right-click menu or table delete button) fails with a syntax validation error instead of dropping the collection.

It appears the UI is passing an invalid command string (or default SQL syntax like DROP TABLE) to the MongoDB query handler under the hood.

Steps to reproduce

  1. Connect to a MongoDB database using a standard connection string.
  2. Navigate to the database view in TablePro.
  3. Locate any collection/table in the sidebar or collection list.
  4. Attempt to delete/drop the collection using the UI button/context menu.
  5. Observe the error notification/dialog.

Expected behavior

The collection should be dropped successfully using the appropriate MongoDB command (e.g., db.<collection>.drop() or { "drop": "<collection>" }).

Database type

MongoDB

TablePro version

0.69.0

macOS version & chip

macOS 26.4.1 / Apple Silicon M5

Screenshots / Logs

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions