'mongodump using query with "like"

I can't dump using a query that uses "like" internment

$ mongodump --host localhost --db local --collection test --query "{"name" : /127/}" --out c:\appo 2022-04-04T10:39:21.871+0200 Failed: error parsing query as Extended JSON: invalid JSON input. Position: 12. Character: /



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source